[web2py] Re: Saving an image from another database into your database

2012-07-06 Thread RCTYCO
')) > > should be > > Field('image_file','blob'), > Field('image_upload','upload',uploadfield= 'image_file'), > > or simply > > Field('image_upload','upload',uploadfield= Field('image_file','

[web2py] Re: Saving an image from another database into your database

2012-07-05 Thread RCTYCO
#x27;,'blob')) Where i provided a filed in the uploadfield On Thursday, July 5, 2012 10:30:22 PM UTC-7, RCTYCO wrote: > > Thanks. > > I need to solve the problem of the file not been uploaded to the blob > field. > > I believe i am doing it correctly. > > I defin

[web2py] Re: Saving an image from another database into your database

2012-07-05 Thread RCTYCO
#x27;The server couldn\'t fulfill the request.' > print 'Error code: ', e.code > id = > db.image.insert(url=url,image_uplaod=db.image.image_upload.store(response,filename=url)) > db.commit() # not sure if needed, depends on where executed >

[web2py] Re: Saving an image from another database into your database

2012-07-05 Thread RCTYCO
Thank you for the quick response. I added the lines above : ( id = db.image.insert(url=url,image=db.image.image_upload.store(response,filename=url)) db.commit() ) It uploaded the information (url and renamed the file) but I don't believe it upload the image to the database. This is what i