|
Posted by Jerry Stuckle on 04/13/06 16:01
Materialised wrote:
> ColdShine wrote:
>
>> Materialised in news:4a6e21Frov70U1@individual.net wrote:
>>
>> [...]
>>
>>> echo "<td><IMG SRC=\"data:image/jpeg;base64," .
>>> base64_encode($row[IMG]) . "\"></td>";
>>
>> [...]
>>
>>> Now I don't know where my problem is, but, when viewed with firefox, the
>>> images load correctly, however when viewed with Internet explorer, the
>>> images do not load.
>>>
>>> You can see a example of the script in action at
>>> http://codegurus.org/~mwalker/test.php
>>>
>>> Does anyone know why the images will not show up in IE correctly?
>>
>>
>> AFAIK IE doesn't recognize <img> tags with inline source. No wonder
>> you only see it working in Firefox (and probabily Opera, too).
>>
> Thanks for your reply.
> Do you know of any work arounds?
What you need to do is create a PHP file to fetch the image, i.e. similar to:
getpic.php:
<?
if ($_GET['pid']) {
(connect to database and fetch row into $data)
header('Content: image/jpeg');
echo $data;
}
Then call it with
<img src="getpic.php?id=1">
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|