Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

error reading image from server

Tony0072 days ago — edited 43 hours ago

am having following error when trying to ready image from server

Executing READ_IMAGE_FILE Built-in:
In Argument 0 - Type: String Value: /usr1/path/ncs/ops/appfiles/drawings/CF10202.png
In Argument 1 - Type: String Value: PNG
In Argument 2 - Type: Integer Value: 327690

Error Message: FRM-47100: Cannot read image file /usr1/path/ncs/ops/appfiles/drawings/CF10202.png.

Executing MESSAGE Built-in:
In Argument 0 - Type: String Value: Attempting: /usr1/path/ncs/ops/appfiles/drawings/CF10202.png
In Argument 1 - Type: Number Value: 121

this the code begin
declare
v_path varchar2(4000);
begin

Tool\_Env.Getvar('XML\_IMAGE', :PARAMETER.NCSXMLIMAGELOC);  
 v\_path := :PARAMETER.NCSXMLIMAGELOC||'/'||c1rec.physicaldrawingid||'.png';  
 message('Attempting to load '||v\_path);  
 pause;  
 READ\_IMAGE\_FILE(v\_path, 'PNG', 'NOC\_REPLY\_TBL\_CODE\_DIAGRAM.RCD\_DIAGRAM');   
 if form\_success then  
    forms\_ddl('begin commit; end;');  
 else  
    message('Could not load image: '||v\_path);  
    pause;  
 end if;  

exception when others then
message('Error reading image: '||sqlerrm);
pause;
end;
end;

Comments
Post Details
Added 2 days ago
3 comments
61 views