Transfer files from the server to client

Hi, here I am writing this exception code and get "error loading file".
/* Formatted on 2012/04/24 13:26 (Formatter Plus v4.8.8) */
DECLARE
  v_file        VARCHAR2 (150)  := NULL;
  client_file   VARCHAR2 (150);
  server_file   VARCHAR2 (150);
  blnret        BOOLEAN;
BEGIN
  client_file := :B2.FILE_NAME;
  v_file := SUBSTR (:B2.FILE_NAME, INSTR (:B2.FILE_NAME, '\', -1) + 1);
  client_file :=  'igotit';
  server_file :=   '\\ip_address\u02\fifapps\Forms\logo.gif'; 
  
  Client_host('net use  \\ip_address \user:abs "mypass"');


  blnret := webutil_file.copy_file ( server_file,client_file);

  IF blnret
  THEN
    MESSAGE ('file copied');
  ELSE
    blnret := webutil_file_transfer.as_to_client (server_file,client_file);

    IF blnret
    THEN
      MESSAGE ('file copied by transfer');
    ELSE
      MESSAGE ('file not copied by transfer');
    END IF;
  END IF;
EXCEPTION
  WHEN OTHERS
  THEN
    MESSAGE ('Error Loading File');
END;

Hello

try something like this...

procedure write_to_file(f_row varchar2)
is
begin

text_io.put_line(g_out_file,f_row);
exception
when others then null;
end write_to_file;

procedure close_file
is
begin
text_io.fclose (g_out_file);
synchrnize;
transferfile:=webutil_file_transfer.as_to_client_with_progress('c:\folder\'||file_name 'Transfering wait.......');
client_host('..................');
synchronize;
wirte something here.............................................
exception
when others then null;
end close_file;
end
IF NOT webutil_file.file_is_directory(server_file) THEN

create directory here.................

not tested...

Sarah

Published by: Sarah on April 25, 2012 05:01

Tags: Oracle Development

Similar Questions

  • I spilled coffee on my Macbook Air and does not illuminate.  How to transfer files from the external hard drive to backup my new Macbook Air?

    I spilled coffee on my Macbook Air and does not illuminate.  How to transfer files from the external hard drive to backup my new Macbook Air?

    If you had a Time Machine backup, you can use the Migration Wizard and connect your new Mac on the external drive which has the Time Machine backup: move your content to a new Mac - Apple Support

  • How to transfer files from the old hard drive to a disc new hard, old hard disk has been removed?

    I had a hard disk going bad. Installed a new hard drive and the need to transfer files from the old hard drive. I have an external enclosure for the old hard drive and can connect by usb port.

    The process is fairly simple once you put the old drive in the external box. You can use the usual methods of copy and paste in Windows Explorer. If you copy files, complete folders, you can take a look at RichCopy.

    http://TechNet.Microsoft.com/en-us/magazine/2009.04.UtilitySpotlight.aspx

    Tom Ferguson

  • Transfer files from UNIX server to the Windows server access path

    Hello Experts, (Gud Gud same backward and Gud Mor)

    Is there a way to transfer files from UNIX (Oracle database) server, to Windows server? AFAIK if path of Windows. I am able to read the file because it is on the server, but it does not recognize the Windows directory at all.

    If you can share documents around this study, I will be grateful.

    Kind regards

    You can download this PL/SQL package to FTP in PL/SQL. It is old, but still needs to do the job. Do not forget that in 11g, an ACL must be created to allow the code to access the network.

    An alternative is to a Unix script ftp script and run (as an external process) using DBMS_SCHEDULER.

  • transfer files from the old computer XP to new Vista computer

    I want to transfer files from my old computer with XP to Vista new computer

    using a USB cable. tried the transfer Assistant, without success.

    You need a transfer cable as in this Google search, not a regular USB cable.
     
    You have flash drives? You can use them. DVD as well, but it takes more time.
  • Download the file from the server

    Hey there, how I start the download function in ActionScript3.0. ?

    (Where a dialog box will open to let my users to download a file from my server)

    import flash.net.URLRequest;
    import flash.net.FileReference;
    
    download_btn.addEventListener(MouseEvent.CLICK , downloadFunction);
    function downloadFunction(event: MouseEvent):void {
        var req:URLRequest = new URLRequest('http://www.yoursite.com/downloads/filename.zip');
        new FileReference().download(req);
    }
    
  • Get a file from the server

    Hello!
    Does anyone have an idea how to get a file
    from the Unix server in local Windows PC?

    The scenario is:
    In eBS, we have the user who performs a concurrent request
    which generates a file with FM

    The user needs this file to check the result of the simultaneous petition
    whenever he performs the request.

    The conditions are:
    1 - the user should not enter the user name and the password of the server manually
    2 - the competing generated request file varies whenever demand competing is made.

    How can we solve this whirlwind?
    Thanks in advance

    Jane,

    You can create a simultaneous host program for the file from the ftp server. For more details, please see (you can also search forum E-Business Suite to other threads):

    Program contributing to the FTP file
    Program contributing to the FTP file

    Need to download excel live without FTP application layer file
    Need to download excel live without FTP application layer file

    FTP from Unix to Windows machine file (Shell script) - inplemention in Apps
    FTP from Unix to Windows machine file (Shell script) - inplemention in Apps

    Download files without the use of FTP tools
    Download files without the use of FTP tools

    The Oracle Applications Developer's Guide
    http://download-UK.Oracle.com/docs/CD/B25516_14/current/Acrobat/115devg.PDF

    Kind regards
    Hussein

  • I have an old profile put in place which is bad I want to transfer files from the old user profile to a new user profile can I do it.

    The old profile has been altered not allowing the installation of msn.  We have created a new profile and msn installed and working properly.  I can move my files from the old profile to the new.

    http://Windows.Microsoft.com/en-GB/Windows-Vista/fix-a-corrupted-user-profile shows how to do this. You need an administrator account to run the copy of the third.

  • Download the image file from the server

    Hi I want to download the image file of the server.

    When you download a file save dialogue comes. I don't want this dialog box.

    There will be a specific location where this file is saved.

    Can someone help me?

    Thank you

    CK

    You can not download the file without saving dialog file - it is a security restriction.

  • Sending a file from the server to the client

    Hello

    Inside of a table, I have a commandButton control which, by pressing on it, I call a method in a bean. Inside the method, I want to send a file that is located in the server in a path like C:\tmp\myfile.pdf to the customer. How can I do?

    Thank you
    Will do

    To do this, you use a fileDownloadActionListener you put on an existing button. Using the properties of the listener, you specify the content type of hat, a file name (not necessarily the actual file name), and a method in a bean that is called when the use clicks the button. In this method, you listen to the file (from your servers path) to the client.
    Check out my blog http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-1/ (especially part 2 BOF a sample).

    Timo

  • Transfer files from the laptop Win 8.1 for win 7 laptop using the crossover cable

    I am struggling with this all day and I don't have a lot of hair left.

    I am trying to transfer files as described in the issue based on this info: http://windows.microsoft.com/en-us/windows/connect-two-computers-crossover-cable#1TC=windows-7

    8.1 win machine showing networks:

    HOME-B2BD - 2.4 - (private network) (my internet connection)

    Type of access: Internet

    Homegroup: joined

    Connections: Wi - Fi (HOME-B2BD - 2.4)

    Unidentified network - (Public network)

    Type of access: no internet access

    Connections: Ethernet

    : Connection to the local network

    Win 7 Machine showing networks:

    HOME-B2BD - 2.4 - (private network)

    Type of access: Internet

    Homegroup: joined

    Connection: Wireless network connection (HOUSE-B2BD - 2.4)

    Unidentified network - (Public network)

    Type of access: no internet access

    Connections: Connection to the Local network

    I put the static IP as described (192.168.0.1 and 192.168.0.2) and same IP of the DNS server on both machines.

    I somehow got it to work before transferring them to about 10 MB/s (- what its about right?) but have no idea how I did it.

    I now have enough and pleads for help from the experts here.

    I spent a lot of time trying to make it and hope that someone can help me.

    Thanks in advance

    Mike

    Michael,

    1 I've done this work using IP and DNS Server IP entries different from those that you tried.  Set the default gateway and preferred DNS server on the IP address of the network card in the other PC.

    For example: -.

    On the PC with the LAN card 192.168.137.1 IP address, assign to the 192.168.137.2 default gateway and preferred DNS server .

    On the PC with the LAN card 192.168.137.2 IP address, assign to the 192.168.137.1 default gateway and preferred DNS server .

    2. you must also have a common Admin user name on both machines.  I added that common at the time and used the same password for each of them as well , but I can't now find notes explaining why I used the same password.  Should not be signed as a common user, you just need to use the credentials for this user when challenged at the first opportunity to connect to the PC.

    3. If you want to start over again and check everything again, I discovered that the procedure to a procedure step by step for the creation of a network of Ethernet cable of two computers between Windows 7 and Windows XP with ICS works for a LAN between Win7-WinXP, Win7-Win10, WinXP-Win10.  It seems likely that it works between Win7-Win8.

    4 a crossover between the LAN cable is not necessary.  A standard LAN cable will also work.  The standard LAN cable connection is, apparently, a little slower than a cable connection, but I was never able to see a difference.

  • How to transfer files from the PC (Vista) to the iMac computer?

    Pulling my hair out here.

    I'm trying to transfer the data from my PC to an iMac. I know that my ip address. I use an ethernet cable from the PC to the router with an other ethernet from the iMac to the router. The iMac cannot connect with my PC. I disabled the firewall and enabled the sharing of files.

    Any suggestions?

    Hello

    http://www.trainsignaltraining.com/share-files-between-Mac-and-PC/2009-05-12/

    .

    Jack MVP-networking. EZLAN.NET

  • Error: "unable to start the service Object Push Profile (OBEX OPP)" when trying to transfer files from the Android phone via bluetooth

    Original title: Android mobile phone via bluetooth, I get an error on my phone.

    When I try to send a file by my Android phone to my laptop via bluetooth, I get an error on my phone saying "cannot start service Object Push Profile (OBEX OPP)". Reason: The return value is "false", but I can send files from my laptop to my phone OK.

    Hi steve3624,

    We recommend to check if there is no parameter which must be activated on your phone, then try to transfer the file to your laptop.

    We also advise to check if there are any service name Object Push Profile and start it. To do this, try the following steps:
    a. Click Start, type services.msc and press to enter.
    b. in the list of services, locate Object Push Profile service and double-click it.
    c. change the startup type to automatic and click on the Start button to start the service.
    d. click ok to apply the changes.

    For further assistance, please get in touch with the assistance of the Android team.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • EOFException when downloading files from the server FTP of Bluetooth

    Hello, I am developing an application that downloads a file from a FTP of Bluetooth server. If I use this code to download a list of files works fine, but if I use the same code to download a real file it doesn't. I tried using plain text, image, video (mp4 and 3gp) and audio with the same result. If I install my app in a Nokia (N95) or a Motorola (K3) works perfectly, but I can't get it to work on my Blackberry 8310
    The problem in the BlackBerry is an EOFException when reading the first byte, no 1 is returned to indicate the end of the file, but an EOFException. BlackBerry Handheld Software (v4.2.2.173)

    This is the code to get the InputStream:

    public InputStream getFileInputStream(ClientSession conn, Operation op, String stFile, String stType) throws IOException {        InputStream inputStream = null;        byte[] FBUUID = {(byte) 0xF9, (byte) 0xEC, (byte) 0x7B, (byte) 0xC4, (byte) 0x95,                   (byte) 0x3C, (byte) 0x11, (byte) 0xD2, (byte) 0x98, (byte) 0x4E, (byte) 0x52, (byte) 0x54,                   (byte) 0x00, (byte) 0xDC, (byte) 0x9E, (byte) 0x09 };        String file = stFile;        String type = stType;        if (file==null) file="";        if (type==null) type="";        //Prepare the headers for the OBEX commands        HeaderSet header = conn.createHeaderSet();        header.setHeader(HeaderSet.TARGET, FBUUID);        //Send OBEX Connect        HeaderSet response = conn.connect(header);        //In order to go the desired folder the OBEX SETPATH command is beeing used        //Prepare the header for the SETPATH commad        header = conn.createHeaderSet();        //folder_name is set to the name of the desired folder        //if left blank the root folder will be used        String folder_name = "";        header.setHeader(HeaderSet.NAME, folder_name);        //Send the SETPATH command        HeaderSet result = conn.setPath(header, false, false);
    
            //Prepare the header for the GET command        header = conn.createHeaderSet();        header.setHeader(HeaderSet.NAME, file);        header.setHeader(HeaderSet.TYPE, type);        op = conn.get(header);        //The selected file will be send to the operation's input stream        inputStream = op.openInputStream();        return inputStream;    }
    

    And the call:

    InputStream in = getFileInputStream(conn, op, "text.txt", "text/plain");
    

    The same call that works perfectly for the list of files (in BlackBerry too):

    InputStream in = getFileInputStream(conn, op, "", "x-obex/folder-listing");
    

    This call produces an xml file which can be read perfectly by any phone.

    Any help is very appreciated!

    Concerning

    Solved. The problem is to use >-1 instead of ! =-1

  • Files from the server does not update the when editing in Machine Windows 7

    I am editing the files on a server with a machine running windows 7 pro. Some files are not updated when changes are made, but the machine seems to be storing it locally. Does anyone have an idea on how to fix this? Thank you!

    Hello

    As you are working on a Windows Server environment I suggest you you posted the question under Windows Server TechNet forum for assistance from the public pro IT. see the following link:

    http://social.technet.Microsoft.com/forums/en/category/w7itpro

    Hope this helps

Maybe you are looking for

  • Where can I find options DO NOT choices through the menu bar?

    If I use the 'Tools' menu item and select 'Options', Firefox crashes, requiring a reboot. I used to have a tab that allowed me to make the changes/choice that I could see in the menu options, but I have lost it and can not find in my story. If I have

  • Volume - volume wheel - Portege M800 level jumps

    Hi all I have Toshiba Portege M800 and I have a problem with the volume knob.If I try to increase or decrease the volume of this volume knob, it will change, but the volume does not change linear. For example, when I increase the volume from 0 to som

  • Calls that have never received

    All the world had problems with calls that just never get to your phone? A few times now, I was sitting in my room with 3-4 bars of service when I suddenly google notifications voice telling me that I have a new voice message (or in one case, 4 new v

  • cannot receive updates error code 800F080D

    Cannot receive updates from microsofts. Continue to receive the error code 800F080D?

  • I constantly get a pop up from microsoft corp.

    It's pop up to Microsoft Corp., eager to install a program. No matter what I click on, leave do not allow or do not show this again it appears every 4 to 5 minutes. How can I stop this annoying pop up. I have a pop up blocker installed. the name of t