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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.