urgent : how to insert a record with BLOB
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: urgent : how to insert a record with BLOB

Hybrid View

  1. #1
    Join Date
    Aug 2002
    Posts
    5

    urgent : how to insert a record with BLOB

    I need to insert a record into a table having a BLOB data type . I want to insert a '*.bmp' image into that. I have tried as below from the sql prompt.

    'INSERT INTO MY_TABLE VALUES (1, BLOB_FILE('c:\WInnt','action.bmp');

    but it's giving an serror saying 'inconsistent data types' .
    Please can somebody help.

  2. #2
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588

  3. #3
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    Yeah! I'm famous
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: www.oracle-base.com
    My blog: www.oracle-base.com/blog

  4. #4
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588
    Originally posted by TimHall
    Yeah! I'm famous
    No doubt about it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width