webutil read file function finds the file on the application server

Hello

I want to select and read a file (possibly .pdf) and save it to the database.

To achieve this, I:

1) created a table, deltia (key primary aa, varchar2, blob, other columns... image_blob, filename)

(2) created a block form of database based on the deltia table. The element of the "image_blob" column type is image

and the image format is "tiff".

(3) wrote the following piece of code to perform the selection of local file (successfully)

Select the FUNCTION (i_FileFiltre IN Varchar2 default vDefFileExt)

RETURN VARCHAR2

IS

vPath Varchar2 (128);

vFileName Varchar2 (256);

vFileFiltre Varchar2 (200): = i_FileFiltre;

Begin

vPath: = CLIENT_WIN_API_ENVIRONMENT. Get_Temp_Directory;

vFileName: = WEBUTIL_FILE. FILE_OPEN_DIALOG

(

vPath,

'',

vFileFiltre,

"Select the file to download.

) ;

Return vFileName;

END selection;

The form above function call is:

Declare

vFileName Varchar2 (200);

Begin

vFileName: = PKG_File_Ops.Selection;

If vFileName is not null then

: eq_deltia_metakinhshs. Filename: = vFileName;

End if;

End;

(4) wrote the piece of code to the game/place the file selected in the form element "image_blob", as following:

client_image.read_image_file (: eq_deltia_metakinhshs.filename,)

substr (: eq_deltia_metakinhshs.filename, instr (: eq_deltia_metakinhshs.filename,-1)).

"eq_deltia_metakinhshs.deltio_image");

The call to the packaged procedure client_image.read_image_file does not work. It returns error

"47109 - cannot locate the/u01/oracle/temp /... image file"

In other words, the system will search to read the selected file locally on the server App.

What can be the cause of this?

With regard to the content of the webutil.cfg of the App Server. :

# ---------------------------------------------------------------------------

# webutil.cfg - WebUtil default configuration file

# ---------------------------------------------------------------------------

# This file contains all the configuration settings for webutil. These are some

# divided according to the following sections:

# 1. Logging options

# 2. Installation options

# 3. Upload a file and download Options

# 1. Logging options side server for recording the log messages and errors

# You must set logging.enabled to true to allow registration of mid-range. Without this

logging of mid-range # will not be any PL/SQL or URL options

# are provided to turn it on. Once recording is activated the other settings are

# in-game.

#

# Details

# -------

# logging.file: sets the file name and location of the log file.

# Note that WebUtil does no management of the log file. You can

# need to manually clean this file at any time.

# logging.enabled: can be TRUE or FALSE

# logging.errorsonly: can be TRUE or FALSE. Parameter True will ensure that

# only errors and the normal information log messages

# are written to the log file. It would be for the use of the product,

# normally be set to TRUE

# logging.connections: can be TRUE or FALSE. Setting to true causes each

connection from a client using WebUtil for write in #.

# the log that it puts in place.

Logging.file =

Logging.Enabled = False

Logging.ErrorsOnly = false

Logging.Connections = false

# 2. Installation options

# WebUtil needs to download files on the client to perform

# some operations such as OLE integration or access to the registry. These files

# are downloaded on the client when webutil is run for the first time.

# Subsequent executions will use the dll in the cache. Define the location of the

# These files on the server and the location on the client.

#

# Here's a chart that shows numeric constants and their meanings. They

# are used in configurations of installation options. These constants are defined

# in WEBUTIL_CORE package spec. Note that the Processor Architecture of the Client operating system

# is generally the architecture of the JAVA virtual machine that runs on the client,

# not necessarily even the real client architecture of BONE.

#

# < Os - > Client OS family < arch - > processor for the Client operating system Architecture

# 0-0 - 32-bit Windows

# 1 Linux 1-64-bit architecture

# 2 SOLARIS

# 3 HP

# 4 AIX

# 5 mac

# 9 unknown

#

# < Package > - package name

# 7 WEBUTIL_OLE2

# 9 WEBUTIL_C_API

# We do not yet have downloads for other packages. If you need, refer

# Spec package WEBUTIL_CORE for constants of other packages

#

# Details

# -------

# NOTE: For all < arch > parameters field is optional. Without this field, the

# setting will apply to the client 32-bit and 64-bit OS (FMV)

architectures of #.

#

# install.syslib.location. < os >. < arch >:

# The virtual path of the directory containing the webutil library files the

server-side of #. This must be an absolute URL or a relative URL

# for the documentbase.

# NOTE: < os > field is optional for this parameter. In the absence of a framework

# which has the client OS and ARCH, it will use

# install.syslib.location. < arch > cannot be specified if < os > is omitted.

#

# install.syslib.location.client. < os >. < arch >:

# The path to the directory on the client machine where the webutil library

# files will be downloaded. This must be an absolute path or a path

# which is the profile of the client user or at HOME. Directory will be created

# If necessary as well as other parent directories. If the path is

# do not set, it will be treated as a special case where the libraries will be

# downloaded to the client JRE\bin (windows) or JRE/lib (unix). If this

# Directory is changed, all libraries will be redownloaded again.

#

# Please keep in mind that other forms server may also have a similar

the location of # and so libraries could be overwritten even when

# client running webutil server of different forms. It is therefore

# advised that the location has a subdirectory that may be unique to your

# Server, such as the name of the host server. You could use $(SERVERHOST) in the

# location. This string will be replaced with the actual hostname of the server

#

# install.syslib. < os >. < arch >. < package >. < n >:

# The names of the libraries required for the particular webutil beans. The

# format of it's name. size | version | showDownloadDialog. Several libraries

# can be downloaded per package. But make sure the values < n >

# row and start at 1 for a given operating system, arch and package together.

install.syslib.Location=/webutil

install.syslib.Location.0.0=/webutil/Win32

install.syslib.Location.0.1=/webutil/Win64

# Add/Edit the following if you want to specify a different location client

# where syslib libraries.

# Format:

# install.syslib.location.client. < os >. < arch > = < location >

\win32 install.syslib.Location.client.0.0=webutil\syslib\$ (SERVERHOST)

\win64 install.syslib.Location.client.0.1=webutil\syslib\$ (SERVERHOST)

# Change the size and the version if necessary, such as when the upgrade of the library.

# Normally this is not necessary since most of these libraries are equipped

# settle. Jacob does not however come with installation

# Format:

# install.syslib. < os >. < arch >. < package >. < n > = name | size | version | showDownloadDialog

1.14.3 - install.syslib.0.0.7.1 = Jacob - x 86 DLL | 102400 | 1.14.3 | true

1.14.3 - install.syslib.0.1.7.1 = Jacob - x 64 .dll | 117760 | 1.14.3 | true

install.syslib.0.0.9.1 = JNIsharedstubs.dll | 45056 | 1.0: true

install.syslib.0.1.9.1 = JNIsharedstubs.dll | 58368 | 1.0: true

install.syslib.0.0.9.2 = d2kwut60.dll | 81920 | 1.0: true

install.syslib.0.1.9.2 = d2kwut60.dll | 102400 | 1.0: true

# You can also add your own libraries here, for example

#install.syslib.0.0.user.1 = testwebutil.dll | 204872 | 1.0: true

#install.syslib.0.0.user.1 = ffisamp.dll | 40960 | 1.0: true

#install.syslib.0.1.user.1 = ffisamp.dll | 35328 | 1.0: true

# 3. Download / upload options

# For file upload and download options, you can set the default locations

# on the server that webutil can use as a work space. Optionally, you can pass

off # upload and download

#

# Details

# -------

# transfer.database.enabled: can be TRUE or FALSE - allows you to activate or

# disable upload and download of data

#                                server.

# transfer.appsrv.enabled: can be TRUE or FALSE - allows you to activate or

# disable the upload and download from the

application server #.

# transfer.appsrv.workAreaRoot: the root of the location in which can WebUtil

# store temporary files uploaded by the client.

# If no location is specified, application server

# user_home/temp will be assumed.

# This place is always readable and accessible writable

# No matter the parameters of

# transfer.appsrv. * are. This parameter is

# If you need side customer

# READ/WRITE_IMAGE_FILE procedures.

# transfer.appsrv.accessControl:Can be TRUE or FALSE - allows you to specify

# that loads and downloads can occur

# the directories named in the

# transfer.appsrv.read.n and

entries transfer.appsrv.write.n # and their

subdirectories #. If this parameter is set to FALSE,

# transfers can happen anywhere.

# transfer.appsrv.read. < n >: list of directory names that downloads can read

#                                from.

# transfer.appsrv.write. < n >: list of directory names that mail can write

#                                to.

#NOTE: by default, the file transfer is disabled by security measure

Transfer.Database.Enabled = True

Transfer.appsrv.Enabled = True

transfer.appsrv.workAreaRoot =

transfer.appsrv.accessControl = FALSE

#List transfer.appsrv.read. < n > directories

Transfer.appsrv.Read.1=c:\temp

#List transfer.appsrv.write. < n > directories

Transfer.appsrv.Write.1=c:\temp

# 4. Others

# Details

# -------

# BlockAllowHeartBeat: Continue the heart beat communication with the

# Server when set to TRUE. By default, the value is

# the value False. If set to False, there is no heart

# fight mode blocking communication.

BlockAllowHeartBeat = False

Notes:

The database version is 11g v.2

Forms services version is 11g v.2

The webutil has been installed and configured (I have done a project that requires reading a

saved locally excel file - using webutil_ole2.)

I didn't notice an error in the Java console.

Thank you

SIM

This error indicates that your server is a unix platform: 47109-cannot locate image file/u01/oracle/temp /


If it is correct, then your webutil.cfg is not been set correctly.  Entries for transfer.appsrv are in reference to the appsrv and not the client.  So you currently C:\temp which is a directory of Windows and not Unix.

(2) Transfer.appsrv.Read.1 =c:\temp. It is already set.

3) Transfer.appsrv.Write.1=c:\temp. It is already set.

Tags: Oracle Development

Similar Questions

  • Webutil - deleting files from the application server

    Is there a Webutil function that will erase the files from the application server?

    I tried Webutil_file. Delete_File but it doesn't seem to work. Not quite sure if it's for customer files?

    Thank you
    Paul

    Hello
    Why don't you use HOST or WEBUTIL_HOST command to delete files of APPLICATION SERVER for example...

    HOST('DEL FILEPATH\FILENAME.EXT');
    or
    HOST('CMD /C DEL FILEPATH\FILENAME.EXT');
    
    or 
    
    WEBUTIL_HOST('DEL FILEPATH\FILENAME.EXT');
    or
    WEBUTIL_HOST('CMD /C DEL FILEPATH\FILENAME.EXT');
    

    Function Webutil_File works on the client side. See the documentation for webutil.
    http://www.Oracle.com/webapps/online-help/forms/10G/State?navSetId=_&Navid=3&vtTopicFile=web_util/functions.htm&vtTopicId=

    -Clément

    Published by: Graham on April 20, 2010 20:07
    Link added

  • A single file in my local folder of RoboHelp 10 which can be copied on the application server?

    Nice Hello Pals, (this is Vipin Nambiar in Bangalore)

    I am currently evaluating Adobe Robohelp 10 version for one of my writings of technical architecture. Requesting assistance to the earlier hedges high time below Said.

    I have completed my technical for writing internal application system and have generated and view available main (with the permission of the file -> display -> main layout.) as content, Index, Glossary and would like to be hosted on the server so that all users of this application can access these contents, Index, Glossary and act as a know-how notes to use this application.

    Is there a single file in my local folder to Adobe RoboHelp 10 which can be copied on the application server?

    (My local Adobe RoboHelp 10 folder

    (a.) subfolders called ! Language!, ! ScreenLayout!, ! SkinSubFolder!, ! SSL!

    (b) Types of files called *. ALI file, *. File of the APJ, *. Bitmap image, *. BRS file, *. Cascading Style Sheet Document, *. CPD file, *. File FPJ, *. GIF image, *. File GLO, *. H file, *. HHC file, *. File Perfect, *. HHP file, *. HTML document, *. HTT file, *. Image JPEG, *. JScript Script file, *. LDB file, *. File PPF, *. PSS file, *. RoboHelp HTML Project leader, *. SSL file, *. XML document)

    Any help here will serve me to plentious

    First of all, your username cannot be changed and it is not a good idea to have visible on any forum email addresses, unless you like to read the spam.

    This issue is addressed in the online help. When you create an output that it is generated in any folder you specify in the source schema. What is in this folder go to the server.

    If help is in! SSL! > WebHelp, so everything in this folder, including subfolders is what it takes to go to the server.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • How2 (a) FIND good init.ora (b) or other files param on application server?

    I can't find the INIT. ORA file on my application server. I need to change some default settings.
    I looked here, I looked at the settings$ v who reported a "SPFILE"... and I looked at who, and there all these parameters with asterisk. and I don't know what that means. I wanted to just increase the number of links allowed DB on my test server.

    Could someone point me to fix the folder / file / documentation?
    Thank you.

    I note the following folder on my... running App Server 10 g in the Windows XP box.

    C:\OraHomes\ORAH1_DEV\database... where the SPFILE.
    C:\OraHomes\admin\UGOSREPS\pfile... that's where an init.ora file is...

    I added two lines in second file... in the topic... (num a 4, the default)
    and stopped and started in the DB, but... nada. parameters of v$ 4 instead of the following still says...

    Open_links = 100
    open_links_per_instance = 100

    ... but I'm afraid to touch the SPFile, because he put in a different form.

    In C:\OraHomes are 5 folders... Admin, Flash_Recovery_Area, OraData, ORAH1_DEV and ORAH2_BI.

    H1 is where we part 1 of the installation of the App Server (the part 'infrastructure', be it be a Forms / Reports Server 10 g), and in which we also added APEX).

    H2 is where we part 2 installation (real forms / reports part server... He insisted on not being under the same roof.)

    H1 and H2 are both available through OEM and seem to be running. But... we test things, so I know I need to change the settings... the first being the link settings.

    Could someone please offer a clue? TX,

    SM

    In order to change the system settings in the SPFILE you must issue an ALTER SYSTEM SET... SCOPE = SPFILE;
    i.e.

    ALTER SYSTEM SET open_links = 100 SCOPE = SPFILE;

    Restart the DB and recheck the values.

  • Print file .rep directly on the printer, configure the application server

    Hello

    I spent several hours on this forum and unfortunately not found a solution yet so hoping someone has an idea that can help me solve this problem.

    Using forms/States of oracle 11g with a linux application server, we develop on windows machines. Printing reports using compiled .rep files.

    We have a network printer sharing (HP) that is configured on the application server, and we can print on the correct printer directly on the application server.

    Problem is when I try to print a report when executing the forms of oracle on my machine of development directly to the printer.

    I tried:

    SET_REPORT_OBJECT_PROPERTY (l_repid, report_destype, printer);

    SET_REPORT_OBJECT_PROPERTY (l_repid, report_desname, 'APPSERVER_PRINTER_NAME');

    When I put the report_desformat in 'pdf' format I can see the reports to enter the print queue, but they do not reach a 'State' order ' print file empty. "

    When I remove report_desformat, he sends in eps and as I understand it, it prints, but with bad formatting (I work remotely and run by what their colleagues say.)

    CUPS 1.4.2 reference printer queue tab.

    The report generates in the browser if I change the destype to produce and use web_show_document to display it as we usually do.


    I understand there are solutions using a java bean or involving the installation of the software on the client computer, but my employer is unwilling to go to that direction. We have only a handful of reports that require the ability to print directly to the printer.


    That someone has an idea of what the problem might be or help provide additional steps, I can take to solve problems? I have no idea how to do to configure printers, our IT Department managed this and they say, it's good so I don't know if there is a problem with what I'm doing or there was something installation related rate with this network printer.


    Thanks in advanced for any assistance!

    I have given up trying to use a report_desformat of pdf and paste it with the default value of the eps, after review, it seems pretty close match that generates pdf format and despite the fact that the queue on the application server throws a misprint even with the eps format it actually always draws for the good enough for now. Would be nice to know what happened here, but the problem has been resolved.

  • File name of the application server in the forms

    Hi people,

    I have two sitting file on the application server and want to get the names of file of them in forms (6) where I can use the filenames for treatment, anyway I can do this?

    See you soon

    Very well!
    In the d2kwut package is a package called win_api_directory_list.
    With this you can list the names of files on the application server in your form and can
    Open it by clicking with the text-io-forms package.
    Concerning

  • I can't get Photoshop and Lightroom to download keep may not find the secure server?

    I can't get Photoshop and Lightroom to download keep may not find the secure server?

    Please read https://forums.adobe.com/thread/1499014

    -try some steps such as changing browsers and disable your firewall

    -also clear the cache of your browser if you start with a fresh browser

    -check the file hosts for blocked entries https://forums.adobe.com/thread/1912777

  • I try to install OBIEE 11 g 11.1.1.7.0, but it does not find the Webogic server already installed on the computer.

    Hello

    I have installed:

    -(Oracle Linux) OL 6.6

    121 GB HD

    5.0 GB RAM

    -JDK-7u80-EA-bin-b05-Linux-x64-20_jan_2015.tar.gz (Java)

    -Fmw_12.1.3.0.0_infrastructure.jar (infrastructure)

    -Fmw_12.1.3.0.0_ohs_linux64.bin (SST)

    I try to install OBIEE (Oracle Business Intelligence, c. 11.1.1.7.0), I unzip these files:

    -bi_linux_x86_111170_64_disk1_1of2.zip

    -bi_linux_x86_111170_64_disk1_2of2.zip

    -bi_linux_x86_111170_64_disk2_1of2.zip

    -bi_linux_x86_111170_64_disk2_2of2.zip

    -bi_linux_x86_111170_64_disk3.zip

    I try to install OBIEE 11 g 11.1.1.7.0, but it does not find the Webogic server already installed on the computer.

    I run:

    / Home/Oracle/OBIEE/Disk1/RunInstaller

    I checked the option "install the software only:

    foto1.png

    I select the 'Home Oracle Middleware' directory:

    / Home/Oracle/Oracle/middleware

    foto2.png

    On the next screen does not appear that there is a weblogic Server installed on the machine, but it exists and works on:

    / Home/Oracle/Oracle/middleware/Oracle_Home/wlserver

    foto3.png

    What can be?

    According to the matrix certification > it seems http://www.oracle.com/technetwork/middleware/bi/bi-11gr1certmatrix-ps6-1928219.xls , OBIEE 11.1.1.7 is not certified with Weblogic 12 c... Take a look at the roadmap "Web and application server interfonctionnements" of the matrix.

    If you want to install the software only, then I think you should use a version of certified weblogic as 10.3.6 and repeat prior steps. The installation wizard should be able to detect your installation of weblogic 10.3.6.

    Kind regards

    White

  • Error message - unable to find the proxy server - how can I solve this problem

    When I try to enter some sites I get the error message: unable to find the proxy server, Firefox is configured to use a proxy server that is not found. It happened all of a sudden and I don't know why or how I can fix it, it does not help that most help site are blocked. I'm using a Mac 10.5.8 and Firefox 15.

    Set not to use any proxy.

    Firefox> Preferences > Advanced > network > setting > don't score no proxy

  • DVD player showing an error of not finding the application

    When you try to play a DVD, the YEAR error message as not finding the application. Please respond to the problem.

    Hi Nibrasnajeeb,

    ·         What is the default Media Application that you use on the computer?

    ·         What happens when you try to open the disks in Windows Media Player?

    Run the troubleshooting below links and check if it helps:

    1:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-and-burning-CDs-DVDs-and-BluRay-discs-Troubleshooter

    2:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-DVD-Troubleshooter

  • Where can I find the Multipoint server 2010 and 2011 Dutch languagepack?

    original title: Multipoint Server language packs?

    Where can I find the Multipoint server 2010 and 2011 Dutch languagepack?
    There is a pack of 35 languages available, where can I find it?

    Thank you

    Please repost your request in the Forum Windows Multipoint Server.  Thank you!

  • How to find the right server to use windowsmail to send and receive e-mails?

    How to find the right server to use windowsmail to send and receive e-mails?

    Who is your current e-mail server? (Which is after the @ in your address).
     
  • BlackBerry smartphones ' could not find the requested server ' ' while trying to get on the internet (bb 9320)

    Help me

    I not have data plan for bb and I'm using the WiFi for my 9320

    I have a problem with the internet connection on this browser today

    yesterday im fine, I can browse what whatsoever, such as youtube, facebook, etc.

    but now while im trying to youtube or etc on my browser 9320

    suddenly "cannot find the requested server" but when I type ""www.google.com " on my browser 9320, that's fine and it is managed properly"

    in other devices, I have no problem with the internet connection

    Sorry for the bad English

    Open the settings of your browser and clear the cache and the browser history, and then do a reset, the unit powered on, remove the battery, replace and reboot.

    Try the browser again.

  • Hi I was doing a tutorial on spllcing images and am confused. He told me go to the windows tab and turn off the application framework. I can't find the application framework on the windows tab? I need to change a setting, or something

    Hi I did a tutorial on the splicing of images and I'm confused. He told me go to the windows tab and turn off the application framework. I can't find the application framework on the windows tab? I need to change a setting, or something

    Hi, Yona,.

    The application is available for Mac machine and not a windows machine.

    Concerning

    Rohit

  • I downloaded creative cloud, but I can't find the applications tab to help me install Dreamweaver. What should I do?

    I downloaded creative cloud, but I can't find the applications tab to help me install Dreamweaver. What should I do?

    change your serviceconfig.xml, missing Creative Cloud desktop applications tab

  • where can I find the Application Frame on / off in the menus?

    Where can I find the Application framework to TOGGLE through the menus in Adobe Photoshop CC?

    At the bottom of the menu window.

Maybe you are looking for