6

How is it done, of course without external libraries, in regular HTML with JavaScript? This seems like it should be a simple one-liner.

I'd like to just do:

<script>
localStorage.image=src("http://"+randomflikrimage+".jpg")
</script>
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
David
  • 71
  • 2

1 Answers1

4

Try storing base64 data, use canvas. Check this: Get image data in JavaScript?

Community
  • 1
  • 1
spacevillain
  • 1,336
  • 1
  • 14
  • 25