i have this prob. when i try to retrieve a BLOB image from database it returns a broken image any help ?? this is the code after connecting and fetching an array:
 <img src='",$row['pic'],"' width='331px' height='200px' />
i have this prob. when i try to retrieve a BLOB image from database it returns a broken image any help ?? this is the code after connecting and fetching an array:
 <img src='",$row['pic'],"' width='331px' height='200px' />
 
    
     
    
    That's not how img tags work.  You essentially have two choices:
Content-Type and use the URL of that file as the src attribute.img tag.The latter would look something like this:
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
Where everything after the comma in the src value is the image data base64-encoded.
