Embedding images into a script
Posted: November 27th, 2009, 3:51 am
Hi all!
I'd like to embed images in my .jsxbin, but i'm at loss when i think about extracting bytes from my file in javascript.
I saw nab's implementation with hexes, creating temp images and reading from there, but while effective it's quite ankward.
Do any of you know a simpler approach? I'd like to deploy only one file instead of three. Thanks!
Max
I'd like to embed images in my .jsxbin, but i'm at loss when i think about extracting bytes from my file in javascript.
I saw nab's implementation with hexes, creating temp images and reading from there, but while effective it's quite ankward.
Do any of you know a simpler approach? I'd like to deploy only one file instead of three. Thanks!
Max