Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,791 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,622 people online right now. Registration is fast and FREE... Join Now!




read_image_file trying to upload new photo.

 
Reply to this topicStart new topic

read_image_file trying to upload new photo., How to update an blob image in Oracle Forms using read_image_file

boldlion44
post 22 Sep, 2008 - 05:10 AM
Post #1


New D.I.C Head

*
Joined: 22 Sep, 2008
Posts: 1

declare
fotoPath varchar2(300);
v varchar2(300);
begin
fotoPath :=webutil_file.file_selection_dialog('c:/',null,'|JPEG|*.JPEG|jpg|*.jpg|gif|*.gif|bmp|*.bmp||JPG|*.JPG|BMP|*.BMP|','Browse',1,true);
if length(fotoPath) > 0 then
client_image.read_image_file(fotoPath,null,'DC_PHOTO.photo');
end if;
end;

I used this code and after I select my new image that I want to upload it throws an error 92101. I used the same code to save the image from the database but instead of using read_image_file I used write_image_file and it worked perfectly. Can anyone help. All I am trying to do is upload a new photo image blob over the current photo blob in the database.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 04:33PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month