title: Inserting an Image into a PDF using XDP
body: <p><strong>Problem:</strong></p>
  
  <p>I'm trying to get an image to be displayed on a PDF that is generated using a XDP file.</p>
  
  <p><strong>What I'm currently trying:</strong></p>
  
  <p>I have a XDP file that is exported from a PDF.  I have a textbox with the tag "my_image" on the pdf.  Here's the code I'm using to encode the string that is inserted as the value of the "my_image" tag.</p>
  
  <pre><code>var bytes = System.IO.File.ReadAllBytes(@"C:\image.jpg");
  var data = Convert.ToBase64String(bytes);
  </code></pre>
  
  <p>When I launch the PDF using the XDP, the image does not display, just the Base64 Encoded string value.</p>
  
  <p>Any ideas?</p>