Re: Loading Image from mySQL table.
| From: | Ayman Mackouly | Date: | Thu, 01 Jun 2000 21:43:14 +0000 |
| Subject: | Re: Loading Image from mySQL table. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-869@lists.php.net to get a copy of this message | ||
Hi,
First thanks for the tip Jerry,
I managed to correctly save the image, for some reason I had to use
stripslashes function on $imagefile in order to correctly save it. This
didn't happen on my BSD machine.
Anyway, the problem poped up now is that I have to set the correct header
content on the begining of my php file then immediately load the picture,
otherwise, it would be displayed as ASCII characters. Even if I use it
command "echo" before displaying the image, it would be displayed as ASCII.
What I really need is to display the image in the middle of some article,
i.e. I have to output text before and after the image and this is causing
the image to be displayed as ASCII.
Anyone knows how to solve this?
Regards,
Ayman