I have the following code in my Controller to save the image to the database, there is no error so I think it works fine.
$data = Input::file('assinatura');
$escaped = bin2hex($data);
$tecnico->assinatura = $escaped;
$tecnico->save();
It looks like this in my table:
TheproblemisthatIdonotknowhowtodisplaythisimage,ifIputit:
<imgsrc="{{ $tecnico->assinatura }}" />
Give this error:
ErrorException in helpers.php line 469:
htmlentities () expects parameter 1 to be string, resource given