views:

43

answers:

2

Hello, all,

I am trying to find out a way to put a small jpg inside a javascript variable so that it can be rendered to the webpage.

Even though i think this should be possible i don't exactly know how to go about this.

So all should happen in client-side.

Does anyone know how to do this?

Thanks in advance

Mario

A: 

This might help, Data URI scheme.

mwore
A: 

Base-64 encoded images

luvieere