Home » Developer & Programmer » Forms » image / BLOB_TABLE (oracle 10g, form 6i)
image / BLOB_TABLE [message #500431] Mon, 21 March 2011 04:09 Go to next message
devendrapal26
Messages: 15
Registered: March 2011
Location: india
Junior Member

[MERGED by LF]


oracle 10f, FORM 6i
when i simply rum my programe its working properly, but when run on web its "browse button" not working, my coding on browse button is :-----

declare
dirname varchar2(255);
v_filename varchar2(255);
begin
tool_env.getvar('D:\', dirname);
dirname := dirname || '\bin\bmp';
v_filename := get_file_name(dirname,NULL,
'All Files (*.*)|*.*|' /*||
'JPEG Files (*.jpg)|*.jpg|' ||
'Bitmap Files (*.bmp)|*.bmp|' ||
'TIFF Files (*.tif)|*.tif|' ||
'CompuServe Files (*.gif)|*.gif|' ||
'PC Paintbrush Files (*.pcx)|*.pcx|'*/ );
:LN_BROWSE_PATH.VC_FILE_PATH:=v_filename;
if v_filename is not null then
read_image_file(v_filename,'ANY','LN_BROWSE_PATH.LG_FILE_IMAGE');
end if;
end;




please give me suggestion for, how can i run my programe on web.....

[Updated on: Tue, 22 March 2011 06:08] by Moderator

Report message to a moderator

Re: image [message #500433 is a reply to message #500431] Mon, 21 March 2011 04:22 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
What does "it is not working" mean? Any error? If so, which one?

Could it be that directory you are trying to browse is not the one you are expecting (i.e. you see it from Forms Builder as it is on your local hard disk, but you can't see it when form is ran from the application server (and directory doesn't exist on iAS))?
Re: image [message #500440 is a reply to message #500433] Mon, 21 March 2011 05:49 Go to previous messageGo to next message
devendrapal26
Messages: 15
Registered: March 2011
Location: india
Junior Member

thks for reply

its not working means , that code is not give any error, when i simply run this form & i press the browse button i am get a dialog box for image selection, but when i run this programe on web its not give any error, & not open a dialog box.....
BLOB_TABLE [message #500585 is a reply to message #500431] Tue, 22 March 2011 05:49 Go to previous messageGo to next message
devendrapal26
Messages: 15
Registered: March 2011
Location: india
Junior Member

oracle 10f, FORM 6i
when i simply rum my programe its working properly, but when run on web its "browse button" not working, my coding on browse button is :-----

declare
dirname varchar2(255);
v_filename varchar2(255);
begin
tool_env.getvar('D:\', dirname);
dirname := dirname || '\bin\bmp';
v_filename := get_file_name(dirname,NULL,
'All Files (*.*)|*.*|' /*||
'JPEG Files (*.jpg)|*.jpg|' ||
'Bitmap Files (*.bmp)|*.bmp|' ||
'TIFF Files (*.tif)|*.tif|' ||
'CompuServe Files (*.gif)|*.gif|' ||
'PC Paintbrush Files (*.pcx)|*.pcx|'*/ );
:LN_BROWSE_PATH.VC_FILE_PATH:=v_filename;
if v_filename is not null then
read_image_file(v_filename,'ANY','LN_BROWSE_PATH.LG_FILE_image');
end if;
end;


that code is not give any error, when i simply run this form & i press the browse button i am get a dialog box for image selection, but when i run this programe on web its not give any error, & not open a dialog box.....
  • Attachment: Browser.fmb
    (Size: 176.00KB, Downloaded 1038 times)
Re: image [message #500595 is a reply to message #500433] Tue, 22 March 2011 06:06 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
There's no use in repeating the same code twice. Besides, would you, please, learn how to properly format code you post? It would make it easier to read.

There's nothing I'd like to add to my previous message.
Re: image [message #500626 is a reply to message #500595] Tue, 22 March 2011 07:57 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
If you want to read files off your pc when running on a web server you need to use web_util
Re: image [message #501853 is a reply to message #500626] Fri, 01 April 2011 01:35 Go to previous message
devendrapal26
Messages: 15
Registered: March 2011
Location: india
Junior Member

BUT WEB_UTIL IS FOR FORM 10G,
I USE D2KUTIL.PLL BUT ITS NOT WORKING......
Previous Topic: Datetime Format
Next Topic: Running forms 10g on Windows 7
Goto Forum:
  


Current Time: Mon Sep 16 12:54:06 CDT 2024