How to Display a Blob from an Oracle Database Using C#/ASP.NET

Posted on 2011-10-12
Last Modified: 2012-05-12
I have written application, and I have successfully queried the database in a way that allows for the selection of a unique blob image. I was wondering if someone could help me with the syntax for getting the image out of the database and allowing the user to save the image. I can pull the blob into a table inside of a dataset. After that point, I do not know what I should do next in order to display the image that was stored inside of the database. (I believe that I need to read all of the information out of the blob in bytes; however, I am unsure of the exact syntax that one should use to open the file and save the file. The file that was stored in the BLOB is a pdf file, and I was attempting to write the file as soon as it is read out of the database.)

Any help that you could provide would be greatly appreciated.
Question by:thenthorn1010
    LVL 53

    Accepted Solution

    LVL 18

    Assisted Solution


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now