Ask the Expert

Access bfile image with SQL prompt

Can I access an image that is stored through the bfile datatype with the SQL prompt?

    Requires Free Membership to View

You can simply run the a query similar to the following to access the image:

SELECT bfile_column FROM your_table;

However, it is up to the application to know what to do with that data. SQL*Plus is a text tool, as such, it cannot display images. SQL*Plus would not be able to handle the data that is returned from the query above.

How your application handles this binary data depends on the development platform. Please read the Application Developer's Guide -- Large Objects in the Oracle docs for examples on many common development platforms.

This was first published in July 2007

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.