read image in oracle reports [message #613749] |
Sat, 10 May 2014 04:37 |
haider_1pk
Messages: 135 Registered: March 2009 Location: PAKISTAN
|
Senior Member |
|
|
Hello Friends,
Kindly guide me how to i can use read_image_file in oracle reports.
I have made it in oracle forms name of student_bio.
st_id, st_name, path from student;
and use trigger of pre_insert read_image_file in forms level.
So picture is display.
Kindly guide how i have to make it in oracle reports.
Thanks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: read image in oracle reports [message #679012 is a reply to message #676070] |
Tue, 28 January 2020 08:18 |
myclassic
Messages: 136 Registered: December 2006 Location: Pakistan
|
Senior Member |
|
|
function CF_1Formula return Char is
LOC VARCHAR2(40):='C:\';
PIC VARCHAR2(500);
out_file Text_IO.File_Type;
BEGIN
out_file :=Text_IO.Fopen(LOC||:EmployeeId||'.JPG', 'r'); -- r is read only
PIC:=LOC||:EmployeeId||'.JPG';
RETURN PIC;
exception
when others then
RETURN 'C:\3'||'.JPG';
end;
Solution for Exception, Simply place a file 3.jpg that you want to show in case of exception. e.g. No_Image.Jpg
|
|
|
|