In short, yes; you can use any of the values from that range.
You can do that in the general binary subtype (0). It is up to you to
pack it in and out.
> i think that for binary there is the necessity to leave a lot of space for
> custom purpose because i can put a lot of different structure into this
> field.
> For example we are using BSON to store device data in our control system. A
> lot of device store, in binary field, an structured data (matrix, image and
> also strange structures) so i hope also in he future this field can be used
> for custom user struct.
>
> Il giorno giovedì 15 marzo 2012 18:07:02 UTC+1, Claudio Bisegni ha scritto:
>>
>> hi all,
>> i need to use the subtype value of bson for binary field. I have seen that
>> is use \00 to \06 and \80 is for user defined. I need to describe the cogent
>> of binary field with some custom structure that use base defined elsewhere.
>> For every structure i'd like to use a free subtype code. Can i use code from
>> \07 up to \80 for custom purpose, and remain bson compliant?
>>
>> thanks in advanced
You can do that in the general binary subtype (0). It is up to you to
pack it in and out.
Claudio
Il giorno 17/mar/2012, alle ore 08:39, Eliot Horowitz
<el...@10gen.com> ha scritto: