Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> How to Insert a JPG to a long raw column using OCI functions.

How to Insert a JPG to a long raw column using OCI functions.

From: Yoann Esnaud <yesnaud_at_fdgroup.co.uk>
Date: Tue, 17 Aug 1999 09:03:37 +0100
Message-ID: <7pb50t$5ss$1@news1.cableinet.co.uk>


Hi,

I am trying to insert a JPG file to an oracle Database (in a long raw column) using Oracle Call Interface functions.

I open the JPG in binary mode, and store it in a buffer. However when I am trying to execute this statement: ocidb.exec ("insert into blob_table values (%d,'%s'),rowID, JPG_Buffer) I get an oracle error number 1465

Has anyone did this before?

Cheers for helping me. Received on Tue Aug 17 1999 - 03:03:37 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US