Image binary data from service code
I'd like to get the raw base64 data that is the Image from a Thing's image property.
Behind the scenes(in the REST JSON object) the image property appears to be a base64 string of the binary image data. But in the service code, it's different.
For example, you can't do this:
logger.warn("MyImageProeprty: " + Things['MyThing'].MyImageProperty);
the result of that is: [B@780be821
I could of course get this data by snagging and then digging through the Thing's JSON from it's localhost REST endpoint, but that seems like more work than it should be. I suspect this Image object that I see in the service has some property or function on it to get this but trying to find that manually would take awhile. I have not seen anything in the Snippets either.
Thoughts?
