As Simon mentioned that it is a bad idea and I agree but just for the
answer's sake you could save them as BLOBs

http://www.postgresql.org/files/documentation/books/aw_pgsql/node96.html

Am I correct folks?

<http://www.postgresql.org/files/documentation/books/aw_pgsql/node96.html>

-AJ

On Thu, May 19, 2011 at 10:17 AM, Simon Connah <simon.connah...@gmail.com>wrote:

> On 19 May 2011, at 14:30, Ram wrote:
>
> > hello everyone i am studying python for my college project in which i
> > am sending some text and image in URL i want to store it to postgreSQL
> > database i know how to read data from URL but not about images how can
> > i perform it please help.
>
> 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-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
AJ

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to