title: Reading a base64 image string with VBA?
body: <p><strong>QUESTION</strong></p>
  
  <p>How to read or convert a base64 image string with  Microsoft Access vba?</p>
  
  <p><strong>REQUIREMENTS</strong></p>
  
  <p>A base64 image string is stored in a <strong>ms sqlserver</strong> database as below:</p>
  
  <p><em>BASE64</em></p>
  
  <pre><code>data:image/png;base64,iVBORw0KGgoAAAA...
  </code></pre>
  
  <p>Using vba I am attempting to read the string from the database using microsoft <strong>vba</strong>.</p>
  
  <hr>
  
  <p>I know vba is capable of reading a string from the database to output the image on screen as I currently achieve this result by reading the image as a <strong>hex</strong> sting as below:</p>
  
  <p><em>HEX</em> </p>
  
  <pre><code>89504E470D0A1A0A0000000D49484...
  </code></pre>
  
  <p>So how can vba read a base64 image string to display the image on screen within Microsoft Access?</p>