Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

large objects

Status
Not open for further replies.

RD137

Programmer
Jul 25, 2001
3
IN
How to store jpg and bmp pictures in a column? Help me out please!
 
Not much to work with here, but I would look up BLOB's in your Oracle manual. Terry M. Hoey
th3856@txmail.sbc.com
While I don't mind e-mail messages, please post all questions in these forums for the benefit of all members.
 
Here is how you can do this for a text file, I havenot tried with bmp etc.

1) create a temporary table with a column which is BFILE
2) create a directory (oracle directory) for the path in which your file exists
3) insert a record into the temporary table with your file in the BFILE column.
4) Now your file is in BFILE column, you can read, display , manipulate your file using DBMS_LOB package. But your file is still in operating system location, oracle stores only the locator infomation. You can load this file in oracle completely into a BLOB column using DBMS_LOB.LoadFromBfile procedure. BLOB can also be manipulated just like BFILE. only difference being now it is stored in oracle tablespace.


Hope it helps.

Hope
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top