Re: Storing gifs, jpegs etc in MySQL and showing them via php

From: Date: Mon, 16 Oct 2000 12:44:08 +0000
Subject: Re: Storing gifs, jpegs etc in MySQL and showing them via php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20357@lists.php.net to get a copy of this message
On 2000-10-16, Ib Christian Bank did say, > Hi, > > i'm pretty new to php, and now i wonder how can i store a gif or a jpeg in a > database (i have stored some gifs in a table with MEDIUMBLOB) and later show > them in a php-page via some db-stuff and the <IMG ...>-tag or something > related. Many people will tell you that this is a bad idea. You have a much better DB for storing files at your fingertips - the filesystem. USe the DB to contains path pointers to the image on disk, and let the file system worry about handling the file. -- Sapere aude My mind not only wanders, it sometimes leaves completely.

« previous php.general (#20357) next »