Exforsys
+ Reply to Thread
Results 1 to 4 of 4

How to store picture files into table?

This is a discussion on How to store picture files into table? within the Oracle Database forums, part of the Database category; Is there any datatype for it pls help me...

  1. #1
    sanjida is offline Junior Member Array
    Join Date
    Nov 2007
    Answers
    3

    How to store picture files into table?

    Is there any datatype for it
    pls help me


  2. #2
    musha_2000 is offline Junior Member Array
    Join Date
    Nov 2007
    Answers
    1

    Smile

    Hi
    if u want store pictures or jpg file make the data type LONG RAW in the table
    by musha


  3. #3
    prasanta_rath is offline Junior Member Array
    Join Date
    Sep 2008
    Answers
    1
    Step 1).
    SQL> Create table pkr_pic
    (pic long raw);

    Step 2).
    Now create a form, Using Oracle Developer.
    Run it.
    Press: Insert a record (On runing oracle form)
    open any picture "right click on the picture" and copy.

    Step 3).
    On Runing Form go to "Edit" and then paste.

    Step 4).
    Press Save (On runing oracle form)


  4. #4
    Adara is offline Junior Member Array
    Join Date
    Jul 2010
    Answers
    5
    Before you can create and execute a procedure to load binary data from the file system into an Oracle table, you will need a table with a blob column and an Oracle directory pointing to the location on the file system, where the binary files are stored. Below I have examples of how to create an Oracle directory, a table with a blob column and a procedure to load binary files:

    /*-- Create the Directory ------*/
    CREATE OR REPLACE DIRECTORY
    BLOB_FILE AS 'D:\BFILE';

    Where "d:\bfile" is the location of the binary files.

    --
    -- DEMO (Table)
    --
    CREATE TABLE DEMO
    (
    ID INTEGER,
    THEBLOG BLOB
    )
    TABLESPACE TS_BLOB

    LOB (THEBLOG) STORE AS
    ( TABLESPACE CODE_TABLE_DATA
    ENABLE STORAGE IN ROW


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...