Re: Images in mysql db

From: Date: Tue, 13 Jun 2000 21:53:05 +0000
Subject: Re: Images in mysql db
Groups: php.general 
Request: Send a blank email to php-general+get-1754@lists.php.net to get a copy of this message
Addressed to: "John Smith" <john-smith@katamail.com> php-general@lists.php.net ** Reply to note from "John Smith" <john-smith@katamail.com> Tue, 13 Jun 2000 17:58:40 +0200 > > Hi, i'm trying to set up a database in mysql (and till now no > problems) but i'd like to know if there's a way to insert the images > directly in the database instead of their simple url so later i can > extract them directly with php insted of passing the url. Thank you > all John Yes, php can handle storing and retrieving images from a MySQL database. No, HTML does not provide any way to retrieve an image without putting a URL into an <IMG> tag, so it does you no good. If you realy want to do this you have to write a SEPARATE php program to retrieve and send the image to the browser. All you have done is complicate your process, and slow things down a little more. Unless you have other, non-web programs using the images from the database, you may as well just store the image files on disk, and put the filename into your database for insertion into the <IMG> tag. Rick Widmer Internet Marketing Specialists www.developersdesk.com

« previous php.general (#1754) next »