Don't.
Save the filesystem path or some other URI to the image in the database and then use that in your code to get the image itself. Saving images directly in the database is a bad idea.
Simon.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Storing BLOBs in postgres can be a pain and storing the images locally doesn't scale well. We ended up using django-storages.
> ok thanks, is there any online tutorial for that from where i can learn about URI?
This is a good introduction to the subject:
http://en.wikipedia.org/wiki/Uniform_Resource_Identifier
Simon.
ok but how can i achieve it in Django means how can i store images in Django python using URI