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 -> InterMedia / OrdImage - import function

InterMedia / OrdImage - import function

From: lars-jacob hove <lars.hove_at_student.uib.no>
Date: Fri, 27 Jun 2003 14:52:26 +0200
Message-ID: <3EFC3E0A.3050205@student.uib.no>


Hello.

I'm having trouble importing images. I have the following procedure :

declare

    Image ORDSYS.ORDImage;
    ctx RAW(4000) := null;

begin

    insert into bilde_test values (
    4, null, ORDSYS.ORDImage.init(), ORDSYS.ORDImageSignature.init());

    SELECT PHOTO into Image FROM bilde_test WHERE photo_id = 4 for update;

    Image.SetSource('file', 'LARSDIR', 'logo_phpBB.gif');     Image.importFrom(ctx, 'file', 'LARSDIR', 'logo_phpBB.gif');

    UPDATE bilde_test SET photov = Image where photo_id = 4;     commit;
End;

When I try to execute the procedure, I get the following error report. (It's in Norwegian, so I've tried to translate the norwegian text) :

declare
*
ERROR on linj 1:

ORA-06510: PL/SQL: untreated useddefined exception
ORA-06512: at "ORDSYS.ORDSOURCE", line 266
ORA-22288: file- or LOB-operation FILEOPEN failed
The data is invalid.
ORA-06512: at "ORDSYS.ORDIMG_PKG", line 701
ORA-06512: at "ORDSYS.ORDIMAGE", line 223
ORA-06512: at line 12

---
I've tried several other procedures, with the same result. Seems like 
the trouble occurs around the "import" statement.
Received on Fri Jun 27 2003 - 07:52:26 CDT

Original text of this message

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