Arun, we cannot continue like this. I need to see the entire model and
actions that do upload/download.

Perhaps something is wrong with web2py but you are not providing a way
to reproduce the problem.

Massimo

On Dec 25, 1:59 pm, "Arun K.Rajeevan" <the1.a...@gmail.com> wrote:
> 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
> filehttp://localhost:8080/init/default/download/pictures.image.bddae63fff...
> 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)

Reply via email to