1

When I make my knitr document, I see the html file in my directory. I load the file and it looks great.

However, I'm curious where the pictures are:

It gives me locations like:

img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACQAAAAYACAYAAAAjFnetAAAEJGlDQ1BJQ0MgUHJvZmlsZQAAOBGFVd9v21QUPolvUqQWPyBYR4eKxa9VU1u5GxqtxgZJk6XtShal6dgqJOQ6N4mpGwfb6baqT3uBNwb8AUDZAw9IPCENBmJ72fbAtElThyqqSUh76MQ ...."

Where exactly is the image?

user1357015
  • 11,168
  • 22
  • 66
  • 111

1 Answers1

3

This IS the image directly encoded in html. http://en.wikipedia.org/wiki/Data_URI_scheme

see f.e. this stack overflow question: Embedding Base64 Images

kind greetings

Community
  • 1
  • 1
Walter
  • 343
  • 2
  • 7
  • Hm, so what you're saying is that very long string actually IS the image just hard coded in text format? Pretty neat! – user1357015 Jun 18 '14 at 17:48
  • @user1357015 Yes, you can encode an image file as a (usually very long) character string. Please read the links in the answer. – Yihui Xie Jun 21 '14 at 05:24