Display PDF in asp.net VB from SQL DB Image

Can someone please show me the best way to display a PDF in asp.net VB code from a SQL DB image using memorystream?

Who is Participating?
VirtualMAKConnect With a Mentor Commented:
Here is complete article on what you are looking for as far as getting the image out of the database into a memorystream. Then my first post gets you the rest of the way.


Check it out.
If you already have the memorystream created here is how I did it:

MemoryStream ms = ff.ForFill3(Server.MapPath("~/App_Themes"), _cs.ClientKey, _cs.Cart.Show.EventID, _cs.TicketTransID);

Response.ContentType = "application/pdf";


Open in new window

ff.ForFill3 is a method that creates the PDF and returns the memorystream.
BKennedy2008Author Commented:
I do not have it in Memory Stream. I just call the sql image from the db. I am kind of looking for that part as well
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.