How to analyze a photo sent through JSON
<p>I have a Web Service that takes a photo through a POST statement and returns a modified copy of that photo back.  We are making changes to the way it processes the photo, and I want to verify that the photo at least has different properties coming back than it did before our changes went into effect.</p>

<p>The photo is being returned as a byte stream inside one of the fields of a JSON object.  I can analyze the JSON object pretty easily, but I'm trying to figure out how to get the byte stream into an Java image object so that I can get its dimensions.</p>