Q

Access bfile image with SQL prompt

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

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

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

Dig deeper on Oracle and SQL

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close