@derrickrozay Can you post your code to store and retrieve the image?
Image blob Malformed UTF-8 characters, possibly incorrectly encoded
I am trying to retrieve an image saved as a blob but I keep getting this error "Malformed UTF-8 characters, possibly incorrectly encoded" when I try to return it as JSON using Laravel 5.4.
database.php mysql configuration
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
public function getpic()
{
$pic = DB::connection('mysql')
->table('itempictures')
->select('picture')
->get();
return response()->json($pic);
}
The collation of the table is latin1_swedish_ci

The collation of the picture column itself is null

print_r of the image

var_dump of the image

@derrickrozay I was thinking Content-type: image/jpg but that probably won't work either.
I'm thinking it's related to JSON needing only UTF8 chars and your blob may have invalid chars. Try utf8_encode($pic).
http://at2.php.net/manual/en/function.utf8-encode.php
Please or to participate in this conversation.