Posted by Norman Peelman on 06/07/06 22:29
"webmechanic" <dmitrymar@yahoo.com> wrote in message
news:1149693940.744768.258410@g10g2000cwb.googlegroups.com...
> I was able to insert images into mysql stored as binary data. How do I
> retrieve it. Please provide thorough explanation. Thanks.
>
Do your SELECT:
$query = "SELECT blobfield FROM table WHERE ????";
$result = mysql_query($query, $dbc);
$result_data = mysql_fetch_array($result, MYSQL_ASSOC);
$img = imagecreatefromstring($result_data['blobfield']);
---
Just lookup the exact function parameters as that is just off the top off my
head...
Norm
--
FREE Avatar hosting at www.easyavatar.com
Navigation:
[Reply to this message]
|