How to record and display images using PostgreSQL and Laravel 5.1

0

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

    
asked by anonymous 16.02.2016 / 13:20

0 answers