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 -> Re: how to insert jpg images in a field of a database?

Re: how to insert jpg images in a field of a database?

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Mon, 14 Oct 2002 15:37:54 GMT
Message-ID: <3DAAE4CC.BAAD3B03@exesolutions.com>


Arun wrote:

> i want to know : Hoe can i store jpg images in a database who's other
> fields are of text form .? plz provide me with the query .?
>   Does oracle 9i works on windows XP professional edition ?

Use a BLOB data type in your table and use the DBMS_LOB package to read the files and load them. I posted an example to this group about six months back but since it has been awhile ... here it is again.

src_file BFILE;
dst_file BLOB;
lgh_file BINARY_INTEGER;

BEGIN
   src_file := bfilename('CTEMP', fname);

   COMMIT;
END load_file;
/

Daniel Morgan Received on Mon Oct 14 2002 - 10:37:54 CDT

Original text of this message

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