Home » Developer & Programmer » Forms » BLOB data is not saving through Form 6.0.
BLOB data is not saving through Form 6.0. [message #118766] Sun, 08 May 2005 04:32 Go to next message
sohailnawaz
Messages: 40
Registered: April 2005
Location: Saudi Arabia
Member
Picture data is not inserting through Form 6.0. Actually in my database in BLOB filed I wast to store signatures.
on command button Browse my code is :

Declare
filename varchar2(200);
Begin
filename:=get_file_name('c:\pict','*.tiff');
read_image_file(filename,'TIFF','PIC');
end;


When i am saving record message display "One record applied and saved successfully" But when i am querying the record (F8). then Picture Data is not showing in BLOB filed. when i am using DBMS_LOB.GETLENGTH(pic) then length is showing zero (0). it means data is not saving in BLOB filed. How can i save data in BLOB filed through From 6.0.

Thanks
Re: BLOB data is not saving through Form 6.0. [message #163957 is a reply to message #118766] Mon, 20 March 2006 23:27 Go to previous messageGo to next message
amolnk
Messages: 9
Registered: March 2006
Location: India
Junior Member
Quote:

Declare
filename varchar2(200);
Begin
filename:=get_file_name('c:\pict','*.tiff');
read_image_file(filename,'TIFF','PIC');
end;



I assume, PIC is your block name, provide the blob item in read_image_file as,
read_image_file(filename,'TIFF','PIC.sign_photo');
where sign_photo is the item in your PIC block.

Saving the record earlier, would have caused only the id to be saved.

Re: BLOB data is not saving through Form 6.0. [message #163964 is a reply to message #118766] Tue, 21 March 2006 00:13 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Search this forum for 'read_image_file'. The question has been raised and answered before.

David
Previous Topic: Runnign Internet Dev Suit 10g Forms
Next Topic: 9i AS problem
Goto Forum:
  


Current Time: Fri Sep 20 04:42:47 CDT 2024