skip to main
|
skip to sidebar
Web Developers
PHP, MYSQL, HTML, JAVASCRIPT, CSS, JQUERY, TRIGGER
How to embed image content in src atrribute
By Webdevelopmentlogics
First we need to read the image and encode it using base64(ex: $data = chunk_split(base64_encode($pictureData)) ) . Then we can directly use it in the html img src attribute
img src="data:image/gif;base64{{$data}}"
Older Posts
< ||| > > >
Newer Posts
Budget Honeymoon Packages
Home
Categories
Convert MYQL timestamp (1)
Djago rest framework (2)
Django (25)
Errors (1)
Javascript (2)
jQuery (2)
Magento 2 (5)
MYSQL (3)
PHP Mail problem in Windows server (1)
Python (12)
Regex (1)
Stoed procedure view and delete commands (1)
Blog Archive
►
2024
(1)
►
July
(1)
►
2023
(1)
►
January
(1)
►
2022
(5)
►
August
(1)
►
June
(1)
►
April
(1)
►
February
(2)
►
2021
(2)
►
August
(2)
►
2016
(6)
►
September
(1)
►
May
(1)
►
February
(4)
►
2015
(6)
►
December
(1)
►
April
(1)
►
March
(4)
▼
2014
(8)
►
December
(1)
►
July
(2)
►
June
(1)
▼
May
(1)
How to embed image content in src atrribute
►
April
(3)
►
2013
(23)
►
November
(2)
►
October
(4)
►
June
(2)
►
April
(1)
►
March
(10)
►
February
(3)
►
January
(1)
►
2012
(8)
►
August
(1)
►
February
(2)
►
January
(5)
►
2011
(5)
►
December
(1)
►
May
(1)
►
January
(3)
►
2010
(3)
►
December
(1)
►
August
(1)
►
July
(1)
►
2009
(5)
►
August
(2)
►
July
(1)
►
June
(2)
►
2008
(16)
►
December
(2)
►
November
(1)
►
October
(2)
►
September
(1)
►
August
(1)
►
July
(3)
►
June
(6)
Feeds
Posts
Atom
Posts
All Comments
Atom
All Comments
ARCHIVES
2024
2023
2022
2021
2016
2015
2014
2013
2012
2011
2010
2009
2008