RE: [PHP] upload an image and store it in mysql
| From: | Ed Lazor | Date: | Thu, 15 Jul 2004 05:05:15 +0000 |
| Subject: | RE: [PHP] upload an image and store it in mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190561@lists.php.net to get a copy of this message | ||
You're seeing raw data and need to specify the mime type with headers. Search the mailing list
archive, there's a few example scripts in there. Just keep in mine that you need to create a
separate script that handles the display of images.
> Thanks, that seems to work. Although trying to retrieve them and show them
> in a browser shows characters / symbols instead. This
> kind of stuff:
>
> jw4ëÜqÈHæQI'‰Úe“ã“@D[‡A\Á `Ñ*[#‰j ¥q6Ñ”]Q.b
> Œâ¶(YŒ:9£-"Òª(K\¯'½È
> ŽÛÃEbXÊê£W(Ìe
> 9Æ›¹pã´EXŽaâÑlÑ˵m8=˜±{ãx´fî ©ÜÎ Lãùy§ùeñ©±(£Žâ5Œ
> ¢µPP€‹3›aª —
> Ãç‰o XŠÓD ~ûüJ¢
> ÜVиܶF&·7´š© cæ[3b䱄C°&EôÐî