Jump to content

How to embed not a link to small picture but the picture itself into html source?


pstein
 Share

Recommended Posts

Assume I have an element like

<img src="https://www.foobar.com/mysmallpic.png" ......>samplepic</img>

Now I want to avoid a linking to a picture source on an external server.

Instead I want to embed the few KB of the picture directly into HTML source code. I can imagine that there is a method similar to

<img src=x'21315112A56CED......58889EFED' ......>samplepic</img>

or alternatively with variable:
 

mypic=x'21315112A56CED......58889EFED' ;

<img src=mypic .....>samplepic</img>

x'...' means the hexadecimal binary content (ANSI or Unicode ?) of the picture source.

Is this somehow possible?

Peter

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...