The mongodb support in DAL is experimental. Thanks for helping test it. We 
could use some help in this area.

On Saturday, 29 September 2012 21:35:09 UTC-5, Jose Galvez wrote:
>
> I am trying to run through the image blog example from the docs using 
> mongodb. when I try to upload an image I get the follwoing error 
> <class 'bson.errors.InvalidStringData'> strings in documents must be valid 
> UTF-8 and when I look at crated document: 
> (self=Collection(Database(Connection('localhost', 27017), u'db1'), 
> u'image'), doc_or_docs={'_id': ObjectId('5067ae9955a5d848e00be9b4'), 
> 'file': u'image.file.946df6ec3010e611.6772696c6c2e6a7067.jpg', 'file_blob': 
> '\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xdb\x00C\x00\x08\x06\x06\x07\x06\x05\x08\x07\x07\x07\t\t\x08\n\x0c\x14\r\x0c\x0b\x0b\x0c\x19\x12...E\x14\x00QE\x14\x00QE\x14\x00QE\x14\x00QE\x14\x00QE\x14\x00QE\x14\x00QE\x14\x00QE\x14\x00QE\x14\x00QE\x14\x00QE\x14\x01\xff\xd9',
>  
> 'title': u'redneck gril'}, manipulate=True, safe=True, check_keys=True, 
> continue_on_error=False, **kwargs={})
>
>
> it looks like it is not properly encoding the file_blob object.
>
>
> Any suggestions on how to fix this?
>

-- 



Reply via email to