title: show image in dompdf , codeigniter
body: <p>When I view the page I can see an error saying "Image not found" which   links to the supposedly not found image which displays fine when you click on it.</p>
  
  <p>I've tried adding a .png extension to the page generating the image but that doesn't make any difference. I've also saved the generated image to the server and linked to that instead and it works fine.</p>
  
  <p>The only method I can think of to solve this is to save the image on the server and then link to that. Ideally, I don't want to do this so I was wondering if anybody had come across this before or if anyone can think of a fix for it.
  The version of dompdf I'm using is 0.6.0 beta 3 and I'm using it with CodeIgniter.</p>
  
  <p>Please see below code, I'm trying to show image in my CodeIgniter view page with dompdf, but I am not able to show it.</p>
  
  <pre><code>&lt;?php require_once 'dompdf/autoload.inc.php';
  require_once'dompdf/autoload.inc.php' $dompdf = new Dompdf\Dompdf();
  $html =  $this-&gt;load-&gt;view ('visitor_data',[],true);
  $dompdf-&gt; load_html ($html);
  
  // (Optional) Setup the paper size and orientation
  $dompdf-&gt;setPaper('A4', 'landscape');
  
  // Render the HTML as PDF
  $dompdf-&gt;render();
  // Get the generated PDF file contents
  
  $pdf = $dompdf-&gt;output();
  
  // Output the generated PDF to Browser
  $dompdf-&gt;stream("visitor-data",array("Attachment"=&gt;0));    ?&gt;
  </code></pre>
  
  <p>Below is the view:</p>
  
  <pre><code>&lt;?php echo "&lt;img src='base_url()/upload/$row[image]'/&gt; " ;?&gt;
  </code></pre>