I read on the FAQ how to get the same number of bytes as was stored: When storing a non-text object like a PNG file in Riak and then retrieving it with curl, it comes back a different size. For Example:
curl -i -X PUT --data @g005.PNG_L -H "Content-Type: image/png" http://sfdev02:8098/luwak/g005.PNG_L Curl will try to convert non-ASCII characters in PUT and POST bodies. Use the --data-binary flag to turn this off: curl -i -X PUT --data-binary @g005.PNG_L -H "Content-Type: image/png" http://sfdev02:8098/luwak/g005.PNG_L Is there an option like '-data-binary' for CorrugatedIron? I am 'put'ing what should be binary data but if I retrieve the data with curl I get a different size and if the binary data is a jpeg image it comes back as corrupted?
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
