JPEG image in base64 format
<p>I have a camera that send me an xml file with some tags , including a tag that represents the image in base64 format. The image is in JPEG format.</p>

<p>For some reason the tag that represents the image it doesn't always have the same name (for a problem of the camera)</p>

<p>So to detect with certainty the tag that contains the image is correct i have to now one thing : </p>

<p><strong>A JPEG image in base64 format ALWAYS start with /9j/ ?</strong></p>

<p>Example : </p>

<pre><code>data:image/jpeg;base64,--&gt;/9j/&lt;--4RYQRXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAAAgAAAAcgEyAAIAAAAUAAAAkodpAAQAAAABAAAAqAAAANQACvyAAAAnEAAK/IAAACcQQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKQAyMDE2OjA4OjA1IDA5OjQ1OjA4AAAAAAOgAQADAAAAAf//AACgAgAEAAAAAQAAAPGgAwAEAAAAAQAAAFkAAAAAAAAABgEDAAMAAAABAAYAAAEaAAUAAAABAAABIgEbAA....
</code></pre>