How can I show BLOB image file to html page in laravel?

Published

I am fetching the blob type value of a png image from database and show it in my html page but its now working, I am using laravel framework. Please do help.

<img src="data:image/jpeg;base64,'.base64_encode( Auth::user()->photo ).'"
                                class="rounded-circle z-depth-0"
                                alt="avatar image"
                                style="padding-left: 10px"
                                height="35"
                            />

Source: Laravel 5 Questions

Published
Categorised as Uncategorised Tagged , , , ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq