1. | db.define_table('person', Field('name'), Field('image', 'upload')) |
creates a database table called "person" with two fields: "name", a string; and "image", something that
needs to be uploaded (the actual image). If the table already exists but does not match this definition, it is altered appropriately."
Regards
Johann
--
> If your image needs to be stored in database (not in filesystem) do:
Is it, in general, recommended to store image (blob) of such size in the
{sqlite3,postgresql} database?
Sincerely,
Gour
--
When your intelligence has passed out of the dense forest
of delusion, you shall become indifferent to all that has
been heard and all that is to be heard.
http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Store the pictures on the file system and picture locations in the database.
Why? Because...
- You will be able to serve the pictures as static files.
- No database access or application code will be required to fetch the pictures.
- The images could be served from a different server to improve performance.
- It will reduce database bottleneck.
- The database ultimately stores its data on the file system.
- Images can be easily cached when stored on the file system.
> The recommended is:
>
> Store the pictures on the file system and picture locations in the
> database.
OK.
> But if it is a requirement to store in database there is not to do
> about.
I should be more clear saying that I was thinking about desktop (pyqt app)
probably using sqlite3.
For the web app, I agree with the points you've mentioned and will save 'em for
the future reference. ;)
Thank you.
Sincerely,
Gour
--
One who restrains his senses, keeping them under full control,
and fixes his consciousness upon Me, is known as a man of
steady intelligence.
how i can retrieve image back so that it becomes visible in smaller
size on the edit client page
Please suggest ...