From: Eric Bergen Date: September 27 2004 10:39pm Subject: Re: Problems with phpMyAdmin, GD library, and jpegs List-Archive: http://lists.mysql.com/mysql/173282 Message-Id: <11b1bd9904092715395ce7fa44@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit If you are storing a complete image in MySQL you don't need gd at all. Just output the correct header and the image file. GD is for creating images on the fly. Also if you can store the image in a file on disk and the path to the image in MySQL. -- Eric Bergen eric.bergen@stripped On Mon, 27 Sep 2004 15:06:46 -0700, Keith Brownmiller wrote: > Greetings, > > Am having some problems with phpMyAdmin, GD library and jpegs. > > Here is the short version of the story. > > I installed phpMyAdmin, modified a database to install a graphic image into one of the tables and it showed the graphic from within phpMyAdmin - no problem. > I then wrote a very simple php route to connect to the database and display the record. - that failed with mention of a problem relating to GD library. > > I then went to the O'Reilly "Programming PHP" book and discovered that I needed the GD library. It stated that I should be able to do a phpinfo() and find the gd section of the report to find out it it was using the GD library. > > I got that installed and functioning using a simple example from the O'Reilly book and am able to get the black square on the screen. > > Now if I go to phpMyAdmin, I am not able to see the graphic in the database like before nor can I display the graphic from some basic php code. > > Am really stumped on this one. Can provide more detail to anybody that can assist in getting this problem solved. > > Thanks > > Keith > Sys Admin > Collins Computer Innovations > >