Jump to content

cannot view my image stored in mysql


mdn666

Recommended Posts

Hello there,

 

I am trying to load a image stored in a mysql table. But somehow I can not make it work.... The image is stored by a .net windows form application in a table. So for so good. I can retreive this table and content with the .net application.

 

Now the other part. I created a view in mysql and this view is called in my webpage. All fields are displayed in the html table, execept the image....

 

in dreamweaver the php file based on a template; the line

 

<img src="scripts/PhPImage.php">

 

should display the image.

 

PhPImage.php:

 

$imagebytes= $row_Recordset1['ProductImage'];

header("Content-type: image/jpeg");

echo $imagebytes;

 

 

But the image is not displayed, so I do something wrong.... Can anybody help me??????

 

Cheers Marco!

 

 

Link to comment
https://forums.phpfreaks.com/topic/201034-cannot-view-my-image-stored-in-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.