On Sat, 21 Jul 2007 19:13:22 -0700, Andrey wrote:
> 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
JSON is a text format so you have to encode the binary data some
En Sat, 21 Jul 2007 23:13:22 -0300, Andrey <[EMAIL PROTECTED]>
escribió:
> Is it possible to pack binary data into simplejson?
json does not provide any direct "binary" type; strings are Unicode
strings. Try encoding your data using Base64 for example, or transform it
into an array of numbe
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'] = xx
d['name'] = xx
d['size'] = x
d['imageBinaryDataJpeg'] = jpegBinaryDataFromcStringIOStringIO
simplejson.dumps(d)
when i do this, it rai