Method Write NamespaceMongoDB.Driver.GridFS AssemblyMongoDB.Driver.Legacy.dll Write(byte[], int, int) Writes bytes to the GridFS stream. public override void Write(byte[] buffer, int offset, int count) Parameters buffer byte[] The source buffer. offset int The offset in the source buffer to the bytes. count int The number of bytes to write.