Unable to read client image file using webutil [message #416974] |
Wed, 05 August 2009 08:53 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
vikram_contact
Messages: 19 Registered: August 2008
|
Junior Member |
|
|
Hi,
I configured webutils on two servers nad in one server everything is fine, while in the second server while reading a image it does not throw any error but it does not read the image.
All the configuration and settings are same but the database is different(Both are 10g)
I can see the java console and the error there is:
Loading frmwebutil.jar from JAR cache
Loading frmall_jinit.jar from JAR cache
RegisterWebUtil - Loading WebUtil Version 10.1.2.3
Loading jacob.jar from JAR cache
2009-Aug-05 15:39:07.587 ERROR>WUF-131 [CLIENT_IMAGE.WRITE_IMAGE_FILE] Invalid client file name \\lgneltst-nt4020.ikeadt.com\IMAGES$\userimages\10823chair2.JPG. Cannot create client file
------------------
I am able to read the path of the file, the image file is also accessible.
I dont know where the problem is occuring.
|
|
|
|
|
Re: Unable to read client image file using webutil [message #417108 is a reply to message #417107] |
Thu, 06 August 2009 01:42 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
vikram_contact
Messages: 19 Registered: August 2008
|
Junior Member |
|
|
Also I found the following information on metalink, but the solution provided in here also did not work.
-----
Subject: CLIENT_IMAGE.WRITE_IMAGE_FILE Of Webutil 1.0.6 Does Not Work
Applies to: Oracle Forms - Version: 10.1.2 to 10.1.2
This problem can occur on any platform.
This problem is related to Forms 10.1.2 and herein Webutil 1.0.6 Symptoms When trying to use the CLIENT_IMAGE.WRITE_IMAGE_FILE command in the webutil-pll (Webutil: version 1.0.6; jacob version: 1. which is called from a Form e. g. via a button then there is no image file created in the relevant directory of the client and there is also no exception or error message!
It can be observed that two .tmp-files were created, like TLB19D2.tmp and TLB19D1.tmp.
ChangesIt only occurs in Webutil 1.0.6. Older versions of Webutil work fine. CauseThere has been a code error detected in the relevant pll. SolutionChange the code concerning the procedure in the relevant pll that are loaded with Webutil 1.0.6 :
PROCEDURE WRITE_IMAGE_FILE (file_name in VARCHAR2,
file_type in VARCHAR2,
item_id in ITEM,
compression_quality in NUMBER := MINIMIZE_COMPRESSION,
image_depth in NUMBER := ORIGINAL_DEPTH) IS
BEGIN
--hItem := FIND_ITEM(item_name);
if not ID_NULL(item_id) then
CLIENT_IMAGE.WRITE_IMAGE_FILE(file_name, file_type,
get_item_property(item_id, BLOCK_NAME)||'.'||get_item_property (item_id, ITEM_NAME),
compression_quality, image_depth);
end if;
END WRITE_IMAGE_FILE;
This means only one change : if not ID_NULL(hItem) --> if not ID_NULL(item_id)
----
|
|
|