How to Select a BLOB column

Posted on 2006-04-19
Last Modified: 2012-05-05
I've a table which has a BLOB column, I wanted to Select the data in the BLOB field, how do I do this. Normal select query doesn't help in this case

Question by:prasen120998
    LVL 142

    Expert Comment

    by:Guy Hengel [angelIII / a3]
    what programming language?
    what do you want to do with the data?
    do you need all the data?

    Author Comment

    I'm using Oracle8.1,
    Yes, I want all the data in the Blob field

    Author Comment

    I need to check/view the data stored in this field
    LVL 19

    Expert Comment

    what information is in that blob? pure text or some binary information? how big is it?

    If it contains text information, you can still view or check them through simple sql by using: UTL_RAW.CAST_TO_VARCHAR2(<blob column>)

    LVL 19

    Accepted Solution

    as this:

      select utl_raw.cast_to_varchar2(blobcol) from table1;


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
    Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now