title: Convert 64base byte array to PDF and show in webBroswer compont
body: <p>This is what i would like to do:</p>
  
  <p>Get a 64base byte array from database (which is actually in pdf format). This works.
  Then i would like to show the pdf in a webbrowser component. </p>
  
  <p>I first started with saving the pdf to a file.pdf and then open it:</p>
  
  <pre><code>        byte[] bitjes = isc.GetFileById(fileid); // Getting the bytes
  
          FileStream stream = new FileStream(@"C:\NexusPDF\" + filename, FileMode.CreateNew);
          BinaryWriter writer = new BinaryWriter(stream);
          writer.Write(bitjes, 0, bitjes.Length);
          writer.Close();
  
          webBrowser.Navigate(@"C:\NexusPDF\" + filename);
  </code></pre>
  
  <p>But that gave me all sorts of problems involving read/write acces. So i figured i have to use the memorystream class to solve this problem.</p>
  
  <pre><code>        byte[] bitjes = isc.GetFileById(fileid);
  
          MemoryStream memstream = new MemoryStream(bitjes);
  
          BinaryWriter writer = new BinaryWriter(memstream);
          writer.Write(bitjes, 0, bitjes.Length);
          writer.Close();
  </code></pre>
  
  <p>But here's where i'm stuck! I can't just show this in a webBrowser component can i?
  Do i have to use the binaryreader before i can show the pdf?</p>
  
  <p>Am i approaching this problem the right way, or are there better alternatives?</p>
  
  <p>Main thing is that i don't want to save the file on disk.</p>
  
  <p>Any help will be appreciated.</p>