Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6076737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:38:31+00:00 2026-05-23T10:38:31+00:00

Hi I got some pdf files in Byte[] and I’m looking for a way

  • 0

Hi I got some pdf files in Byte[]
and I’m looking for a way to view them inside a WPF application.

I have already looked at http://hugeonion.com/2009/04/06/displaying-a-pdf-file-within-a-wpf-application/ But ran into problems with visual studio not being able to ref the correct dll’s, just like in the comments.

But anyway, that method only allows LoadFile(string filename) and I would really like a way to use the Byte[] directly instead of wasting time saving it to a temp location.

Edit

According to Jerry Nixon Answer

I added a WebBrowser to test it, but it just shows the Open file dialog instead of displaying the file in the browser.

 <Grid>
       <WebBrowser Name="myBrowser" Source="file://C:\mypdffile.pdf" />
  </Grid>

Edit 2

Was running Win 7 64 and changing my app’s Platform Target from AnyCpu to x86 made it work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:38:32+00:00Added an answer on May 23, 2026 at 10:38 am

    The absolute best and easiest is to embed a web browser, write your byte[] to a temp location and point your browser to that location. The Adobe reader will render the PDF inside the browser and thus inside your application. I’ve done it. It works fine.

    Write byte[] to a file:
    How to convert Binary to Byte and write as a file in c#

    Find Temp folder:
    Creating a temporary directory in Windows?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Last summer, I made a Java application that would parse some PDF files and
I've got a problem with some legacy Java code that renders PDF files. We're
I have a Java application that parses pdf files in a directory and its
I got some problems with finding a bug in php/mysql application, and I wonder
I got some files, after an egrep command, like egrep -l -r '(this|that|those)' *
I got some binary files containing integers. Is there some nice Unix command, that
In my application, I need to convert PDF docs to PCL5 generic files to
In my project i have to use thumbnail of PDF files. I used PDF-Render
I am creating an iPad application, in that i have to use different PDF
We have recently got a client that have the ability to send files (text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.