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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: