From: David Wall <d.wall@computer.org>
To: ryan@paymentalliance.net
To: pgsql-general@postgresql.org
Subject: Re: Data type for storing images?
Date: Tue, 13 Mar 2001 09:15:42 -0800
Message-ID: <012101c0abe1$3c3a0300$5a2b7ad8@expertrade.com> (raw)
References: <20010311223818.18682.qmail@mailhost.sidereal.kz>
<3aabc524.433007942@news.postgresql.org>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: d.wall@computer.org, ryan@paymentalliance.net, pgsql-general@postgresql.org
Subject: Re: Data type for storing images?
In-Reply-To: <012101c0abe1$3c3a0300$5a2b7ad8@expertrade.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox