title: Image not appearing in rdlc report even when passed as parameter
body: <p>I am trying to display an image on a rdlc report and I have an image object and a parameter saved called <code>BoxImage</code>.</p>
  
  <pre><code>public void Run(string BoxImage, string LogoImage)
  {
      try 
      { 
          LocalReport report = new LocalReport();
  
          var path = System.Windows.Forms.Application.StartupPath;
          log.Info(Path.Combine(path, @"Reporting\QCLabelV2.rdlc"));
          report.ReportPath = Path.Combine(path, @"Reporting\QCLabelV2.rdlc");
          report.EnableExternalImages = true;
          ReportParameter boxImage = new ReportParameter("BoxImage");
          boxImage.Values.Add(BoxImage);
          report.SetParameters(boxImage);
  
          report.DataSources.Clear();
          report.DataSources.Add(new ReportDataSource("dsList", LoadSalesData()));
  
          report.Refresh();
          log.Info("Finished Refresh");
          Export(report);
          log.Info("Export Complete");
          Print();
          log.Info("Print Complete");
      }
      catch (Exception ex)
      {
  
      }
  }
  </code></pre>
  
  <p>This is my print function </p>
  
  <pre><code>private void Print()
  {
      ProcessStartInfo info = new ProcessStartInfo();
      info.Verb = "print";
      var path = System.Windows.Forms.Application.StartupPath;
      info.FileName = Path.Combine(path, @"Reporting\BoxLabel.pdf");
      info.CreateNoWindow = true;
      info.WindowStyle = ProcessWindowStyle.Hidden;
  
      Process p = new Process();
      p.StartInfo = info;
      p.Start();
  
      p.WaitForInputIdle();
      System.Threading.Thread.Sleep(3000);
      if (false == p.CloseMainWindow())
          p.Kill();
  }
  </code></pre>
  
  <p>And this is my export function which generates the pdf.</p>
  
  <pre><code>private void Export(LocalReport report)
  { 
  
          byte[] Bytes = report.Render(format: "PDF", deviceInfo: "");
  
          var path = System.Windows.Forms.Application.StartupPath;
          log.Info("About to create file - " + Path.Combine(path, @"Reporting\BoxLabel.pdf"));
          using (FileStream stream = new FileStream(Path.Combine(path, @"Reporting\BoxLabel.pdf"), FileMode.Create))
          {
              stream.Write(Bytes, 0, Bytes.Length);
          }
          path = Properties.Settings.Default.AssemblyLabelLocation;
          log.Info("About to create file - " + Path.Combine(path, _objectList.First().BarcodeValue.Replace("*", "") + " - " + _objectList.First().ProductCode + ".pdf"));
          using (FileStream stream = new FileStream(Path.Combine(path, _objectList.First().BarcodeValue.Replace("*", "") + " - " + _objectList.First().ProductCode + ".pdf"), FileMode.Create))
          {
              stream.Write(Bytes, 0, Bytes.Length);
          }
  
  
  
  }
  </code></pre>
  
  <p>But no matter what I set I still get a blank image on the report. And as you see below, indeed there's an image!</p>
  
  <p><a href="https://i.stack.imgur.com/ulfRr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ulfRr.png" alt="enter image description here"></a></p>
  
  <p>Parameter setup for the image properties 
  <a href="https://i.stack.imgur.com/hVwip.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hVwip.png" alt="enter image description here"></a></p>