Re: Data type for storing images?

From: "David Wall" <d(dot)wall(at)computer(dot)org>
To: <ryan(at)paymentalliance(dot)net>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Data type for storing images?
Date: 2001-03-13 17:15:42
Message-ID: 012101c0abe1$3c3a0300$5a2b7ad8@expertrade.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

> I am not sure what your exact purpose is, but in doing a lot of web
> work with pgsql, I usually just store the full path to the image in a
> varchar field and fetch that right into the IMG SRC attribute when I
> need to display the image.

Why would a full path in a IMG tag work? Doesn't your web server use
relative paths based on its document root? If not, you have a serious
security hole allowing people to access any file on your system. <wink>

> I also have modified a simple web based image uploading script so upon
> uploading an image it detects the images width and height and inserts
> that into the DB as well. The script is written in PHP, let me know
> if it would be helpful to send it to you.

I'd be interested in this script. You'll probably need to send it either
"in place" thru the list, or as an attachment directly to me.

Thanks,
David

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Limin Liu 2001-03-13 17:16:33 Re: display temp table structure?
Previous Message Tom Lane 2001-03-13 17:12:07 Re: display temp table structure?

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2001-03-13 18:25:56 Re: Re: Data type for storing images?
Previous Message David Wall 2001-03-13 17:06:15 Re: Re: Data type for storing images?