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 it uploaded. Image_file is empty. id,url,image_upload,image_file '1', 'http://eandata.com/image/products/000/000/015/0000000151122.jpg', 'image.image_upload.94df8d0ebb1047e0.303030303030303135313132322e6a7067.jpg', <Null> This is my model. Model db.define_table('image', Field('url','string'), Field('image_upload','upload',uploadfield='image_file'), Field('image_file','blob')) Any suggestions?