using local image files in SVG (and HTML)

"David Dailey" <[email protected]> Wed, 7 May 2014 10:14:53 -0400
Newsgroups gmane.text.xml.svg.devel
Message-ID <000601cf69fe$b7acab70$27060250$@net>
Many years ago, I used to be able to use input type=file to incorporate
locally chosen images into SVG (or HTML). The browsers then recognized that
there was some sort of security error (since it exposed, I gather, the local
pathname to script).

 

Modifying a clever script from the folks at Mozilla, that itself uses
window.URL.createObjectURL() to retrieve a "blob," we can, once more, do
this useful thing without having to make round trips to a server to access
local images!

 

http://cs.sru.edu/~ddailey/html/localfiles3.htm

 

cheers

David