Displaying 1 result from an estimated 1 matches for "d20a0e21390a684ac0a80116".
2006 Mar 03
0
binary_to_string/string_to_binary confusion
...ng object
identical to the contents of
BINARY_FIXTURE_PATH = File.dirname(__FILE__) + ''/fixtures/flowers.jpg''
When it gets written to the database, it should be hex-encoded similar
to the following:
INSERT INTO binaries ("id", "data") VALUES(1, X''D20A0E21390A684AC0A80116'')
only with the hex portion being much larger.
I''m having trouble implementing binary_to_string and string_to_binary.
If I implement both of them to simply return value, then the first two
asserts pass:
assert @data == bin.data, ''Newly assigned data differs from origi...