Creating folder on the server applications using webutil.

Hello

I use this feature of webutil to transfer the file from the client to the application server.
i.e.
webutil_file_transfer.client_to_as

File is the transfer. But now I want to create the folder when running on the application server.

For example, my file is now transering to C:\temp\. I want to create folder to the runtime server-side shows while I transfer the file.
is it possible. If Yes please let me know as soon as possible.


Thank you
Kam

Technically, using d2kwutil, it has been used in client/server 6i only is not supported. Creating a directory on the server can be done in different ways. The method chosen will depend on what domain you are stronger and how strict is the security of the server.

OPTION 1:
Use the HOST command to run a simple DOS command. You can test to see if the directory already exists in a similar way. Example:

-- Does directory exist?
Declare
     WinCdCmd varchar2(3000) := 'cmd /C CD';
     cmd varchar2(2000);

     -- value of :path should be something like C:\ or C:\somedirectory
     searchPath varchar2(1000) := :path;
Begin

-- Be sure to add quotes around the path name if it includes blank spaces.
   cmd := WinCdCmd||' "'||searchPath || '"';

   HOST (cmd,no_screen);
   IF NOT form_success THEN

      -- Directory was not found.  Do what is necessary to create directory here ...
      HOST ('mkdir "' || :path || '"',NO_SCREEN);

      raise form_trigger_failure;

   END IF;

  message ('Directory found.');
  message ('Directory found.');
  /*
  ... Directory was found so do something with it here ...
  */
End; 

OPTION 2:
Write the necessary code in java. Then use the imported forms Java functionality to call java code. You will find examples on the Internet (e.g., Google)

There may be other options, but option 1 above is probably the easiest to manage. It may be necessary to add additional error handling, but this will depend on your needs.

Tags: Oracle Development

Similar Questions

  • Failed to create the connection to the server application using jdev

    Hi"

    I'm unable to create the connection to the server using JDeveloper 10.1.3.1 version after "configuration Service 10.1.3.1.0 with 10.1.2 Oracle Internet application Identity

    Directory"I followed" Guide the administrator Oracle® BPEL Process Manager 10 g (10.1.3.1.0) "part number B28982-03".
    URL-> "http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/service_config.htm#BABIBGFF".

    I was successfully able to integrate and capable "2.1.3.3 step 3: the Oracle Internet Directory test Configuration.

    But now when I try to establish a new connection to the application server with JDeveloper it gives below error.

    error: No process OC4J up AS instance identified by field: opmn oc4j_soa + oc4j-hostname-6003-default

    Please advice,

    Thank you
    Yatan

    Published by: Yatan on June 30, 2009 15:05

    What is the result of opmnctl status - app? You give the right opmn... other datails as and IS &?

  • Shared folder of the server become unreachable. Event logs is not useful. No relevant newspaper found.

    Hello world

    Here's the scenario:

    Shared folder of the server became unreachable. Try to access via UNC (name or IP), but failed. Server is pings and accessible via RDP. Server service is started. I can telnet port 445. The Windows Firewall is disabled.

    OS: Windows Server 2008 R2 SP1 Standard

    Restarting the server problem.

    Need your help on this issue. The question met twice last August 08 and 28. Event logs is not useful. No relevant newspaper found.

    Thanks in advance.

    Ask in the forum Windows Server:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • Download Web site to host FTP - folder on the server?

    I am trying to download my Web site on the FTP host.

    FTP server, username and password (to connect to the FTP server) seem to be good.

    The question appears to the next step (Upload to FTP host): URL of the Site and folder on the server

    The first error I get is "file X does not appear to point to site X."

    When I say "Fix", it highlights the URL of the Site in red.

    When I say 'Ignore' seems to download something, but the site still does not work.

    What should I exactly put to "folder on the server?

    I expect the upload to be much easier than this.

    I watched several videos on this and none address this problem.

    The problem with Muse or my domain/server?

    Need help ASAP please - this site is going live today!

    Thank you

    Hello Kathrin,

    It is well known that in all these cases you describe I'm not a friend of a detailed diagnosis. In order to be independent in all these things is one of the reasons why I prefer an external FTP program. The difficulties with which we must fight encourage me in this opinion, especially because we are always looking for experts, we charge a 'jack of all trades '.

    To manage multiple Web sites or download my files, and sometimes for the reverse, for a necessary download from my server or use a "sync a whole site", I use FileZilla. It just seems easy for me to keep track of all transactions accurately and generate or easily reflect the desired tree structure.

    First and foremost, FileZilla has a function (translation of my German FileZilla), called 'compare the list of files. Here it is possible to use the time of size or change file as a criterion. There is also the possibility of 'hide identical files', while only those files that you want to redact remain visible.

    And even if it means that you need to install a new program, I am convinced that there is an advantage. Here is the link to get it and where you can read information on how it works:

    http://FileZilla-project.org/ and http://wiki.filezilla-project.org/Tutorial#Using_the_site_manager

    Mac: Mac OS X (use: the additional download options)

    http://FileZilla-project.org/download.php

    Of course, you must also all data to MIME issues and access to reach your server, please contact your web hosting provider.

    In my filezilla, must be used as the server name, the name that you get from your provider (see screeshot)

    Sorry, but I had to remove the real names of the 'server' and 'Benutzer '.

    Hans-Günter

    P. S.

    Since I use two screens, it has become even more comfortable.

  • Delete the folder on the server

    Hello

    When the Muse is published, you can add a folder to the name of the server. If you change the name, the old man a stay in line. How can I remove this name from "folder on the server?

    We use to have all the files when you connect Business Catalyst, but I can't find any more.

    Rgds

    Hello

    Please connect to your site using sFTP and delete the folder. To learn how to connect your site to British Colombia, please take a look at this article

    Connect to your site using sFTP

    Let me know if you have any question.

  • Error connecting to the Server Application creation

    Hi friend

    I learn the SOA, I work on samples of cue card in jdev 11.1.1.4
    In "Design a SOA Composite Application" Cue card sample iam getting error when connecting to the Server Application creation

    whille I give the connection test I get
    ----------------------------------------------------
    JSR-160 performance test... Failed
    cannot establish the connection.
    Test DomainRuntime JSR-160... Jump
    Tests of JSR - 88... Jump
    Tests of JSR-88-Local... Jump
    JNDI tests... Jump
    JSR-160 Edit tests... Jump
    Test HTTP... Success
    Model MBeans test server... Jump
    HTTP authentication test... .the

    2 of 9 successful tests
    --------------------------------------------------------------
    I gave
    Username > weblogic
    password > eu1
    Since the parameters of the WebLogic Server console so I gave the same

    WebLogic host name > localhost
    WebLogic domain > I gave the domain name that I've specified during the installation of Oracle SOA Suite

    Port > 7001, 7002 > ssl port == > if I give this 0 on 9 successful tests
    Port > 1521, ssl > 1521 port == > 2 of 9 successful tests


    Please advice me how can I solve this problem, what needs to be done

    Thanks in advance
    AT

    Have you tried after restarting the JDev After unchecking this setting? Connect to the Weblogic administration console, go to the Middle--> servers, click the name of the Server Admin and check the value of the address of the listening and listening port setting. Use the same values when the connection to the application server connection in JDev. If listening address is empty then either use localhost, or the host name or IP address of the machine.

    Kind regards
    Anuj

  • How to send images and a single parameter to the server by using the POST method. ?

    Hey

    I want to send images and a single parameter to the server by using the POST method.

    Please help me.

    Vaishali, take a look at this-

    http://developer.Nokia.com/community/wiki/HTTP_Post_multipart_file_upload_in_Java_ME

    Thank you.

  • When we publish a Web site create in MUSE, the server must be linux? Please let me know because I have the problem with the form works... now the server that I use is the window...

    I am trying to publish in my domain on windows server, but I have a problem with the form...

    The server must be linux to work the form?

    Thanks in advance for your help...

    Thank you Brad... but how can I understand if a Linux server support? I try to do something in particular?

  • How FTP a file from the client computer to the server database using Forms 10 g

    Hello
    I want a file from a client computer to the database server computer using Forms 10 G (or PL/SQL) via ftp.
    could you please tell me how can I do this

    Concerning

    Hello

    I gave u the adequate instructions on webutil configuration but u did not comply with it.
    I will post again please read correctly and follow it.

    How to get running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a new 'Complete' installation of Oracle Developer Suite 10.1.2.0.2,
    Here are the steps to get a shape of small test running, using WebUtil 1.06.

    Note: Oracle_Home is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor and do a find/replace on
    Oracle_Home with your real value (no slash). Then, it is easy to
    copy and paste the actual orders to be run from the copy of the memo.

    (* 1) * download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
    and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.

    (* 2) * copy or move jacob.jar and jacob.dll
    C:\webutile is the folder where you extracted Jacob and ends in ...\jacob_18
    CD C:\webutile
    Copy jacob.jar Oracle_Home\forms\java\.
    Copy jacob.dll Oracle_Home\forms\webutil\.
    Staging of Jacob is no longer needed and can be deleted.

    (* 3) * sign frmwebutil.jar and jacob.jar
    Open a DOS command prompt.
    Add Oracle_Home\jdk\bin in the path:
    set PATH=Oracle_Home\jdk\bin;%PATH%
    Sign files and check the result of success:
    Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\frmwebutil.jar
    Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\jacob.jar

    (* 4) * If you already have a pattern in your RDBMS that contains stored WebUtil code,.
    You can skip this step. Otherwise,.
    Create a schema for the stored code WebUtil and privileges to
    Sign in and create a stored package. Name of the schema "WEBUTIL" is recommended
    for no reason other than consistency based on users.
    Open Oracle_Home\forms\create_webutil_db.sql in a text editor and remove or comment
    the declaration of EXIT, in order to see if the objects have been created witout
    errors.
    Launch SQL * more like SYSTEM and the issue:
    Webutil IDENTIFIED BY password CREATE a USER
    DEFAULT TABLESPACE users
    TEMPORARY TABLESPACE temp;
    /
    GRANT CONNECT, CREATE PROCEDURE, CREATE SYNONYM TO webutil PUBLIC;
    /

    CONNECT webutil/webutil@rcci
    @Oracle_Home\forms\create_webutil_db.sql
    -Inspect SQL * Plus output for errors, and then
    CREATE a PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
    /

    Reconnect as SYSTEM and the question:
    Grant execute on webutil_db to public;

    /

    (* 5) * Edit Oracle_Home\forms\server\default.env and add Oracle_Home\jdk\jre\lib\rt.jar
    to the CLASSPATH entry.

    (* 6) * add edit Oracle_Home\forms\server\formsweb.cfg default insde:
    archive_jini = frmall_jinit.jar, frmwebutil.jar, Jacob.jar
    Archive = frmall.jar
    also add:
    webutil
    WebUtilLogging = off
    WebUtilLoggingDetail = normal
    WebUtilErrorMode = alert
    WebUtilDispatchMonitorInterval = 5
    WebUtilTrustInternal = true
    WebUtilMaxTransferSize = 16384
    baseHTMLjinitiator = webutiljini.htm
    baseHTMLjpi = webutiljpi.htm
    baseHTML = webutilbase.htm
    archive_jini = frmall_jinit.jar
    WebUtilArchive = frmwebutil.jar, jacob.jar, f90all.jar
    Archive = frmwebutil.jar, f90all.jar
    lookAndFeel = oracle

    (* 7) * Oracle_Home\forms\server\webutil.cfg edit and add:
    Transfer.Database.Enabled = True
    Transfer.appsrv.Enabled = True

    (* 8) * start the OC4J instance

    (* 9) * start Forms Builder and connect to a schema in the RDBMS used in step (4).
    Webutil.PLL open, make a 'compile ALL' (shift-control-K) and generate PLX (Ctrl-T).
    It is important to generate the PLX, in order to avoid the FRM-40039 indicated in Note 303682.1
    If the PLX is not generated, the library Webutil.pll must be fixed with
    path information full access to all who wish to make use of WebUtil. This is NOT recommended.

    (* 10) * create a new WBF.
    Open Webutil.olb and subclass (not copy) the Webutil opposes the shape.
    There is no need to subclass the WebutilConfig object.
    Attach the Webutil.pll library and remove the path.
    Add a logon trigger IT with code
    NULL;
    to avoid having to connect to a RDBMS (optional).
    Create a new button on a new canvas, with the code
    show_webutil_information (TRUE);
    in a trigger WHEN BUTTON PRESSED.
    Compile the FMB to FMX, after doing a compilation-All (shift-control-K).

    (* 11) * under Edit-> preferences-> Runtime in the form designer, click the "Reset to Default" If
    the "Application Server URL" is empty.
    Then add '? config = webutil' at the end, if you end up with a URL of the form
    : http://application-tier server: port/forms/frmservlet? config = webutil

    (* 12) * run your form

    Note: If you want to use Jacob and you can configure jacob too, if you follow the above mentioned instructions.
    Sarah

  • Form 10G - Saving Blob on server applications using Java.

    Hello

    Forms 10g using, I'm looking for a solution to retrieve the Blob from my database (10 gr 2) and save it to the application server on the "Oraclehome\Apache\Apache\htdocs" directory so that users can download/view it via the browser.
    first of all, I used WebUtil to download files on the client and it worked perfectly.
    However, for some reason, my client does not want to download the file on his client.

    So here I am, I've created a java class called "saveBlobToFile" that receives a string as a parameter to write it to a file.
    I imported this class in forms where I used the following code.
    Everything works fine, but I need to convert my RAW in HEX to move to Java string and converted again to a Byte [].
    I order to speed up the process, I would avoid these 2 conversions.
    Don't you think that it is possible to move the RAW format (which is just a stream of bytes) to java? Either by converting it to ORA_JAVA. JACOB byte? Either passing as an object and cast in java to a byte array?

    Thanks in advance,
    Tim.

    PS: I based my development on this article
    https://support.Oracle.com/CSP/main/article?cmd=show & type = not & ID = 70110.1


    /***************
    FORMS
    ***************/
    DECLARE
    BLOB MY_BLOB;
    RAW BUFFER (32767).
    DIRECTORY OF THE AMT: = 10000; -32767;
    INTEGER POS: = 1;
    MYBLOBFILE ORA_JAVA. JOBJECT;
    BEGIN
    SELECT DOCUMENT
    IN MY_BLOB
    OF WRK_LOB_STORE
    WHERE ID = 1;

    LOOP
    DBMS_LOB. READ (MY_BLOB, AMT, POS, BUFFER);

    IF POS = 1 THEN
    MYBLOBFILE: = SAVEBLOBTOFILE. NEW ();
    SAVEBLOBTOFILE. WRITETOFILE (MYBLOBFILE, "C:\test.txt", RAWTOHEX (BUFFER));
    ON THE OTHER
    SAVEBLOBTOFILE. APPENDTOFILE (MYBLOBFILE, "C:\test.txt", RAWTOHEX (BUFFER));
    END IF;

    WHEN the AMT RELEASE < 10000;
    POS: = POS + AMT;
    END LOOP;
    END;

    /***************
    JAVA
    ****************/

    package saveblobtofile;

    to import java.io.FileNotFoundException;
    to import java.io.FileOutputStream;
    import java.io.IOException;

    public class saveBlobToFile {}

    private FileOutputStream fio;

    public saveBlobToFile() {}
    }

    ' public void writeToFile (String fileName, String, stringBuffer) survey FileNotFoundException.
    IOException {}

    FIO = new FileOutputStream (fileName);
    FIO. Write (hexStringToByteArray (stringBuffer));
    FIO. Close();

    }

    ' Public Sub appendToFile (String fileName, String, stringBuffer) throws FileNotFoundException,.
    IOException {}

    FIO = new FileOutputStream (fileName, true);
    FIO. Write (hexStringToByteArray (stringBuffer));
    FIO. Close();

    }

    public static ubyte [] hexStringToByteArray (String s) {}
    int len = s.length ();
    Byte [] = new ubyte data [len / 2];
    for (int i = 0; i < len; I += 2) {}
    data [I / 2] = (byte) ((Character.digit (s.charAt (i), 16) < < 4))
    + Character.digit (s.charAt(i+1), 16));
    }
    return data;
    }


    Public Shared Sub main (String [] args) {}
    saveBlobToFile saveBlobToFile = new saveBlobToFile();
    }
    }

    A very simple solution is to 'adjust' the WEBUTIL_FILETRANSFER package and create a new procedure DB_TO_AS by combining the existing DB_TO_CLIENT and procedure CLIENT_TO_AS (withou the intermediate step to save the file on the client)

  • How to create database in the server administration

    I'm newbie can a

    Yone direct me to create a database in the server administration

    or a table in cf. I wanted to tell the database with data.c

    extension of the AR

    I don't know what you mean when you say you want to create a "database with the data.car extension'.  CF is a web application, not a server database server.

    Information about connecting to databases are in the documentation of CF.  See:

    "Adding data sources.
    http://help.Adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf3639b1-7ffc .html

    "Accessing and using data.
    http://help.Adobe.com/en_US/ColdFusion/9.0/developing/WS8f0cc78011fffa7168855f811cdb0b0cce-8000.html

  • Create directory on the server for the theme

    Hello.

    How to create a theme in a directory custom on the server - for example in/i/themes/custom?

    How APEX in theme 1 files are located in the/i/themes/theme_1 directory?

    How to change the text of the variables of the themes - as a variable #HEAD #?

    Please provide the following information:

    -APEX version
    -Edition and version DB
    -Web server architecture (EPG, SST or APEX listener)
    -The browsers used
    -Theme

    How to create a theme in a directory custom on the server - for example in/i/themes/custom?

    Depends on the architecture of the web server used. However, it is best to avoid changes to the APEX installed files or folder structure to avoid problems with future fixes and upgrades.

    How APEX in theme 1 files are located in the/i/themes/theme_1 directory?

    Through references of style sheet in page as template headers:

    
    
    
    
    

    How to change the text of the variables of the themes - as a variable #HEAD #?

    To be more specific: what exactly is the requirement that you are trying to answer?

  • Stop TB of creating folders on the server

    TB31.4 on W8.1 creates folders within TB & on the webmail server, and I couldn't stop it.

    I uninstalled / reinstalled TB due to other problems, created a new profile and added IMAP settings. Once connected, TB creates a box of RECEPTION and sometimes UNWANTED, on the server subfolder. While TB does not work I can explore the ones contained in Windows Explorer (...\Data\profile\ImapMail\,mail.domain.com, \INBOX.sbd) and delete, as well as on my server, but whenever I open TB, they are recreated.

    I also used the tool to subscribe and ensured that they were not, but it makes no difference.

    The server is not their creation because they are not in the Web mail until I opened TB.

    What can I try next? Is there a TB file with instructions on who should exist files I can delete or forced to "Refresh"?

    I found a solution. There is an check box labeled Allow server to replace these namespaces (screen attached). It is the same dialog window that Matt suggested above.

    After several changes of different settings I could refine it as a solution, otherwise seen as a difficulty.

    Thank you for everything!

  • Photosmart HP 6520 cannot connect to the server to use apps on printer

    Last night, I bought the printer, saved, set up with the apps on my phone and Tablet and connected it wireless. When I try using one of the applications on the screen it is written "server connection error:-1 there was a problem connecting to the server." Press Retry to connect again, or OK to exit.

    I have a hp email address configured for printing and it works very well, I just can not access any of the applications on the screen of the printer...

    All that I'm missing?

    I'll send a private message to your Inbox shortly on what to do from that point to try good issue that you experience in obtaining the printer to access applications on your private network.

  • Problem connecting to the server by using the url with the logical name!

    Hi all!

    I looked for information on this subject, but have not seem to found a solution.

    I'm developing a Smartphone application that needs to connect to a server to retrieve data. Then I use a direct connection with the correct settings (I hope):

    URL = "url of the server" + "deviceside:true" + "AFN:...» »

    The problem is that the connection should be done without Hardcoding the "apn". These are the tests I've done so far (assuming I'm always add the ' deviceside: true ' parameter):

    URL (logical name) + AFN OK!
    FAILURE of the URL (logical name)
    URL (static IP) OK!

    * by logical name, I mean a url as www.google.com

    What I need is to use the logical name, without the parameter apn!  Maybe I'm missing another parameter that I don't know?

    Some additional info that might be useful! :

    -The server is a server of Vodafone, which, as has been explained to me, should be on the list of white of the RIM (not sure what that means, but I guess it has to do with the fact that BB connection through the RIM at one point servers, and be in this list gives a sort of 'privilege' when you browse servers of RIM) , and I don't know it is publicly accessible as (see following)

    -An android version of the application works fine without Hardcoding the AFN and using the logical name (I guess it has to do with the RIM servers!)

    Any help or ideas towards the solution that it is greatly appreciated!  If I'm missing some info that you think I should add! Please tell me!

    Thanks for your help!

    Juan

    Thanks Peter!

    I could solve it by looking at the code of the alternative of the Api network in the link sent you me!

    The solution was the addition of the ConnectionUID parameter to the url String!  as to why this solves the problem I still don't understand it! (If you can enlighten me with the reason, I would be very grateful)

    This value is found in the service books!, I have the zip code just in case it helps someone!

    Hogshead string = null;

    Full book sb = ServiceBook.getSB ();

    Reviews [] ServiceRecord = sb.getRecords ();

    for (int i = 0; i)< records.length;="">

    {

    String cid = records [i] .getCid () .toLowerCase ();

    String uid = records [i] .getUid () .toLowerCase ();

    If ((cid.indexOf ("wptcp")! = - 1) & (uid.indexOf ("wifi") ==-1) & (uid.indexOf ("mms") ==-1))

    {

    Hogshead = records [i] .getUid ();

    }

    }

    then add the parameter: ConnectionUID = Hogshead

    Once again, thank you!

Maybe you are looking for