I changed image = db.pictures.image.store(form.vars.image.file, form.vars.image.filename) to image = db.pictures.image.store(request.vars.image.file)
for above post. Now I changed them back. (ie correct thing) Now there's no error in console. But image is not showing up. And I tried to download the file http://localhost:8080/init/default/download/pictures.image.bddae63fff11a183.45323632312e4a5047.JPG directly. For my surprise, it showed up and I saved the file on hdd and opened it. my image viewer shows Error interpreting JPEG image file (Improper call to JPEG library in state 200) Is that mean, file get corrupted in some state of uploading to db. (conversion)