-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:Ruby 2.6.3, BSON 4.6.0, Mongo 2.11
I have a field in an mongoid model that is declared as a binary:
field :screenshot, type: BSON::Binary
With BSON 4.5.0 and Mongo 2.10, I can assign any data to this field and save it.
After updating to BSON 4.6.0 I get encoding errors:
Encoding::UndefinedConversionError:
"\xC3" from ASCII-8BIT to UTF-8
Did the proper procedure to store binaries change with the update?
- duplicates
-
MONGOID-4823 Values for BSON::Binary fields are not converted to Binary
- Closed
- is related to
-
RUBY-2043 BSON::Binary fails to serialize if data is frozen
- Closed