MySQL Forums
Forum List  »  PHP

Re: LONGBLOB + PHP + image issue
Posted by: Peter Brawley
Date: November 27, 2017 11:43AM

One way: write a specialty scriopt that invokes mysqli_query() to retrieve the blob into $row['imageblob'], then ...

header("Content-type: image/jpeg");
echo $row['imageblob'];

... or retrieve it inline, then ...

echo "<img src='", $row['imageblob'], "' width='175' height='200' />";

Options: ReplyQuote

Written By
Re: LONGBLOB + PHP + image issue
November 27, 2017 11:43AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.