Byte array is a supported data type. For example, you could define a
class like:
public class C {
public ObjectId Id;
public byte[] Data;
}
And then use code like this to save an instance of C to the database:
var c = new C { Data = new byte[] { 1, 2, 3 } };
collection.Save(c);
If looking at this sample code doesn't answer your question, please
provide additional information, such as:
- what version of the C# driver are you using
- your class declaration
- the code you wrote that is getting an error
- a stack trace