Saw that it was still considered experimental, still might give it a try if 
the only thing that is not working is the whole blob thing, as what I am 
really interested in storing and whole documents in it.essentially I am 
after the the entire JSON representation of document, and the ability to 
realistically store multiple "documents" for a given object. so Iwill keep 
looking at it to see it will work. I am actually thinking of building a 
hybrid application using both mongodb and a traditional relational db (most 
likely postgres) for stuff like authentication and stuff like that. 

Any way is there any additional info you might need to help with the 
debugging?

On Sunday, September 30, 2012 8:32:38 AM UTC-4, Massimo Di Pierro wrote:
>
> 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