title: Using IndexedDB to save images
body: <pre><code>&lt;img src="picture_1.png" id="imgHolder"/&gt;
  </code></pre>
  
  <p>Would like to save image with indexedDB in database named Images on button click.</p>
  
  <pre><code>&lt;button id="write" onclick="saveToDB()"&gt;Save To DB&lt;/button&gt;
  </code></pre>
  
  <p>Another button will read image from Images database to display in <code>&lt;div id="resultContent"/&gt;</code>.</p>
  
  <pre><code>&lt;button id="read" onclick="readFromDB()"&gt;Read from DB&lt;/button&gt;  
  </code></pre>