I have not tested it yet so perhaps you can help me.
In trunk

db.define_table('imagestore',
   Field('name','upload',uploadfield='myblob'),
   Field('myblob','blob'))

db.define_table('car'
   Field('name')
   Field('image','upload',uploadfield=db.imagestore.name))

notice car.image points to imagestore.name and imagestore.name points
to imagestore.myblob.

form=crud.create(db.car)

Should let you upload images but they all go into imagestore, not car.
Everything else should work out of the box. I have not tried it.
Please let me know what works or does not. Do not access imagestore
directly.

Massimo

On Oct 1, 7:44 am, mdipierro <[email protected]> wrote:
> It should be possible to re-write store() and retrieve() in sql.py to
> do this. I will look into it.
>
> Massimo
>
> On Oct 1, 7:40 am, István Gazsi <[email protected]> wrote:
>
> > Thanks for the quick reply! I have a database table which stores the
> > title, the thumbnail, and the full size version of an image among
> > other things. When I load 25 records from this table to a gallery, the
> > GAE loads the whole records and it consumes a lot of IO.
>
> > Can you recommend something about how can I store the full size image
> > in another table while it's still connected to the thumbnail and other
> > things? And I would like to upload the pictures via the default
> > appadmin interface.
>
>

Reply via email to