I have stored an image in MySQL as a Blob. When i try to get the image with eloquent, i get the following error:
Malformed UTF-8 characters, possibly incorrectly encoded
i tried first:
$_Reservation->image = json_encode(base64_encode($_Reservation->image));
After that, i tried to return is directly but with the same error.
When i remove the image, it’s working fine so the encoding of the table shouldn’t be the issue.
Can someone kindly help me with this issue?