title: How are image(jpeg and png) files formatted within SVG files?
body: <p>I am attempting to edit an SVG file in JS, I have already developed a method for doing so. I am struggling on how to change the image, which is a jpeg, in said file. In the SVG before I made any edits it contained a huge string of letters that translated into the image.</p>
  
  <p>Here is a chunk of that.</p>
  
  <pre><code>CQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYa
  </code></pre>
  
  <p>If you open a jpeg file in a text editor you also get a string of seemingly random characters, however putting these into the SVG does not make the desired image appear. The text that corresponds the image is filled with question marks in diamonds.</p>