Image as String?

I want to pass an image through externalInterface. What’s the best way? Can I convert it to a string and chop it up into bits?