A
Andrey
Hi
I donno if this is the right place to ask for this question, anyway....
Is it possible to pack binary data into simplejson?
d={}
d['date'] = xxxxxx
d['name'] = xxxxxx
d['size'] = xxxxx
d['imageBinaryDataJpeg'] = jpegBinaryDataFromcStringIOStringIO
simplejson.dumps(d)
when i do this, it raises a UTF8 decode error, probably about the binary
image data
My question is, anyone will suggest a workaround to this error?
i really like to pack my raw image data into the JSON, so my other
programming script can read the array easily
Thanks
An K
I donno if this is the right place to ask for this question, anyway....
Is it possible to pack binary data into simplejson?
d={}
d['date'] = xxxxxx
d['name'] = xxxxxx
d['size'] = xxxxx
d['imageBinaryDataJpeg'] = jpegBinaryDataFromcStringIOStringIO
simplejson.dumps(d)
when i do this, it raises a UTF8 decode error, probably about the binary
image data
My question is, anyone will suggest a workaround to this error?
i really like to pack my raw image data into the JSON, so my other
programming script can read the array easily
Thanks
An K