Help!!!! copy a file of client at server

Must copy a file of client at server, write code plsql. Exist of the instruction at concern.....
thanks
Giovanni
P.S. excuse for write english evil!!!
email: [email protected]

This is a hello!. Please do not post the same question more than once. It makes the threads hard to follow.
Your future co-operation is appreciated.
Cheers, APC

Similar Messages

  • How do I copy a file to a remote server using runtime exec - plz Help!

    Hi,
    I am trying to copy a file to a remote server using a runtime exec command as follows:
    Runtime.getRuntime().exec("scp "+getProperty(ListNewHandsetDetailsConstant.PROP_OUTPUT_PATH_JAR)+getProperty(ListNewHandsetDetailsConstant.PROP_OUTPUT_JAR_NAME)+".jar "+" "+getProperty(ListNewHandsetDetailsConstant.PROP_OUTPUT_PATH_TWO_USERNAME)+"@"+getProperty(ListNewHandsetDetailsConstant.PROP_OUTPUT_PATH_TWO_URL)+":"+getProperty(ListNewHandsetDetailsConstant.PROP_OUTPUT_PATH_TWO_JAR));
    Problem is this statement does not execute, as when I try it directly on command line, it requests for a password. Any suggestions on how I can get rid of that? I think I might have to configure my ssh_config file, but when I did some "Googling", I found the configuration settings of a ssh2_config file. I tried those (changing it to Host-based Authentication), but it didn't recognise them. Please help, this is so urgent!
    Regards,
    Simz

    Don't use Runtime.exec (or ProcessBuilder) for this. Check out JSch at JCraft (or some other Java SSH API.

  • Transfer file from client to server using http

    HI friends,
    I want to transfer files from client to server...I tried that with the help of socket and rmi..........
    But Http is only the best mechanism for my application..........
    Without using servlets, how to transfer files with the help of http.....
    Any help would be appreciated.......

    Google is your friend, and appearently www.jguru.com also:
    http://www.jguru.com/faq/view.jsp?EID=160

  • Urgent - Upload a file from Client to Server.

    Need to load a file from the client machine to the Server running 9iAS Rel. 1 on a HP Unix Machine.
    We are using Forms 6i. We have looked into the File Upload Utility demo code provided with Forms 6i - but have been unsuccessful in reusing it. PLS HELP

    Duplicate post.
    Upload a file from client to server by forms in E-Bussiness Suite R12
    Re: Upload a file from client to server by forms in E-Bussiness Suite R12.

  • How to copy a file from Client to Application Server

    Hello,
    My requirement is user selects a file from Browse button on oracle form - this location is on client side, and have to copy this file on Application server.
    I tried using webutil_file.copy_file function but it gives error - copy_file is not a procedure or is undefined.
    There is another way of Client_to_AS but it needs some changes in configuration files of webutil, which is not allowed in our scenario.
    Source - client machine resident file
    Target- Application server disk location
    So can any one help in this regard?

    Hi Francois,
    Thanks for your suggestion, actually i didnt want to use Client_to_As as client doesnt want to make any changes in any configuration files, no matter how small the change is.
    Anyways we are able to successfully copy the file using Client_to_AS, but one thing that i couldn't understand is why was our webutil_file.copy_file function failing?
    Any hint about this?
    Thanks!
    Avinash.
    Pune- India.

  • Unload file from client to server in APEX

    Hi All!
    I have a file on a client computer.
    I have my APEX application.
    Do you know how to unload file from client computer to server in my APEX application ?
    Best regards,
    Roman

    See if these links help:
    http://download-east.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CJAHDJDA
    http://concept2completion.net/c2/wwv_flow_file_mgr.get_file?p_security_group_id=727128741744148&p_fname=fileDownload.pdf
    Doug

  • How to upload file from client to server in servlets.

    actually in my application i have to upload file from client m/c to server.
    it is not possible through file i/p stream as fileStreams does not work on network. Please mail me if you have any solution to this.
    Thank's in advance............

    Haii roshan
    Pls go through this thread..
    http://forum.java.sun.com/thread.jspa?forumID=45&threadID=616589
    regards
    Shanu

  • Error while copying a file from windows oracle server to a solaris server

    Hi all,
    DECLARE
      l_conn  UTL_TCP.connection;
    BEGIN
      l_conn := ftp.login('Destination Ip address ', '22', 'Username', 'Password');
      ftp.ascii(p_conn => l_conn);
      ftp.put(p_conn      => l_conn,
              p_from_dir  => 'MID5010_DOC1TEMP', -- Oracle Directory name from where we need to copy a file
              p_from_file => 'Hipaa.33KM.5093.06152011130146885.834.O.irl',
              p_to_file   => '/qatest1/mihipaa5010/mj5010/DevelopmentStage/working_directory/Outbound/Data/75061252/Hipaa.00AN.07262011173844778.820.O.copied.irl'); -- Directory of the destination machine where we need to paste
      ftp.logout(l_conn);    
       exception
        when others then
          dbms_output.put_line(sqlcode || sqlerrm);
          --dbms_output.put_line(l_conn);    
    END;We are getting the below error:
    SSH-1.99-OpenSSH_5.1
    -29260ORA-29260: network error: TNS:connection closed
    Could any one please let us know why this error is raising...

    prakash wrote:
    Hi all,
    DECLARE
    l_conn  UTL_TCP.connection;
    BEGIN
    l_conn := ftp.login('Destination Ip address ', '22', 'Username', 'Password');
    ftp.ascii(p_conn => l_conn);
    ftp.put(p_conn      => l_conn,
    p_from_dir  => 'MID5010_DOC1TEMP', -- Oracle Directory name from where we need to copy a file
    p_from_file => 'Hipaa.33KM.5093.06152011130146885.834.O.irl',
    p_to_file   => '/qatest1/mihipaa5010/mj5010/DevelopmentStage/working_directory/Outbound/Data/75061252/Hipaa.00AN.07262011173844778.820.O.copied.irl'); -- Directory of the destination machine where we need to paste
    ftp.logout(l_conn);    
    exception
    when others then
    dbms_output.put_line(sqlcode || sqlerrm);
    --dbms_output.put_line(l_conn);    
    END;We are getting the below error:
    SSH-1.99-OpenSSH_5.1
    -29260ORA-29260: network error: TNS:connection closed
    Could any one please let us know why this error is raising...As sybrand correctly points out, this issue doesn't belong here.
    You are using a 3rd party package "ftp" and the error it is indicating suggests the issue is a network issue of some sort.
    We don't have the code of that package or know what it is doing, so please consult whoever supplied or wrote the package and/or your network administrators.

  • Help copy large file from iPhone to PC

    Hello Everybody.
    I’m coding the Record application. However, I have problem with copying the file from iPhone device to the PC after recording. I used Attach File function on Email but it doesn’t allow with large size > 10MB file. I haven’t found any solution yet for this problem. iTune 9.0 has “Include Voice Memos” function, can i do the same with my application ? “Include My App” e.g.
    Anybody knows other solution for this problem?
    Thanks for read

    You could check your approach against this article: http://support.apple.com/kb/HT4083.  If you are still having trouble you could try an app that will send it wirelessly, such as PhotoSync.

  • Trasnfer File from Client to server

    I am making a server printer where all the system can take print out from the Printer installed on the server
    i am not able to send file from the client to the Server. I am Attaching the code Please Help me it is my college project.
    Server.java*
    import java.io.*;
    import java.lang.*;
    import java.net.*;
    import java.util.*;
    import java.io.File;
    class Server
         static final int PORT      = 26548; //Server Listening port
         static String path;
         public static void main(String args[])
              System.out.println("Starting Server");
              receive();
         public static void receive()
              while ( true )
                   try
                        //Create a socket
                        ServerSocket srvr = new ServerSocket(PORT);
                        Socket skt = srvr.accept();
                        String clientname= skt.getInetAddress().getHostAddress();
                        int clientport=skt.getPort();
                        long time = System.currentTimeMillis();
                        path= "C:\\Ankit Gupta\\Programs\\"+clientname+"\\"+time+" test.pdf";
                        System.out.println("File Recieved from : "+clientname+" : "+clientport);
                        //HttpServletRequest req;
                        //String remoteHost = req.getRemoteHost();
                        //String adr = getRemoteUser();
                        FileOutputStream fos = new FileOutputStream(path);
                        BufferedOutputStream out = new BufferedOutputStream(fos);
                        BufferedInputStream in = new BufferedInputStream( skt.getInputStream() );
                        //Read, and write the file to the socket
                        int i;
                        System.out.println("Receiving data...");
                        while ((i = in.read()) != -1)
                             out.write(i);
                        out.flush();
                        in.close();
                        out.close();
                        skt.close();
                        srvr.close();
                        System.out.println("Transfer complete.");
                        printfile();
                   catch(Exception e)
                        System.out.print("Error! It didn't work! " + e + "\n");
                   try
                        Thread.sleep(1000);
                   catch (InterruptedException ie)
                        System.err.println("Interrupted");
              } //end infinite while loop
         public static void printfile()
              delete();
         public static void delete()
              try
                   Thread.sleep(5000);
              catch (InterruptedException ie)
                   System.err.println("Interrupted");
              System.out.println("Deleting file");
              File f = new File(path);
             // Make sure the file or directory exists and isn't write protected
              if (!f.exists())
                   throw new IllegalArgumentException("Delete: no such file or directory: " + path);
             if (!f.canWrite())
                   throw new IllegalArgumentException("Delete: write protected: "+ path);
              // If it is a directory, make sure it is empty
             if (f.isDirectory())
                   String[] files = f.list();
                   if (files.length > 0)
                   throw new IllegalArgumentException("Delete: directory not empty: " + path);
             // Attempt to delete it
              boolean success = f.delete();
              if (!success)
                   throw new IllegalArgumentException("Delete: deletion failed");
    Client.java_
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    import java.net.*;
    public class Client extends JFrame {
    static final int PORT = 26548; //Server Listening Port
    static File file;
    static final String HOST = "10.35.9.152";//Server Address     
    JTextField   m_fileNameTF  = new JTextField(25);
    JFileChooser m_fileChooser = new JFileChooser();
    Client() {
       m_fileNameTF.setEditable(false);
         JButton openButton = new JButton("Open");
         openButton.addActionListener(new OpenAction());
         JPanel content = new JPanel();
         content.setLayout(new FlowLayout());
         content.add(openButton);
      content.add(m_fileNameTF);
         this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         this.setContentPane(content);
         this.setSize(400,200);
    class OpenAction implements ActionListener {
         public void actionPerformed(ActionEvent ae) {
              int retval = m_fileChooser.showOpenDialog(Client.this);
              if (retval == JFileChooser.APPROVE_OPTION) {
                   file = m_fileChooser.getSelectedFile();
                 m_fileNameTF.setText(file.getAbsolutePath());
                   send(file.getAbsolutePath());
    public static void main(String[] args) {
         JFrame window = new Client();
         window.setVisible(true);
         public static boolean send( String filename )
         try
              System.out.println("Connecting to Server");
              Socket skt = new Socket(HOST, PORT);
              //Create a file input stream and a buffered input stream.
              FileInputStream fis = new FileInputStream(filename);
              BufferedInputStream in = new BufferedInputStream(fis);
              BufferedOutputStream out = new BufferedOutputStream( skt.getOutputStream() );
              //Read, and write the file to the socket
              int i;
              System.out.println("Connected to Server");
              System.out.println("Sending data...\n");
              while ((i = in.read()) != -1)
                   out.write(i);
                   //System.out.println(i);
              System.out.println("Transfer complete.");
              //Close the socket and the file
              out.flush();
              out.close();
              in.close();
              skt.close();
              return true;
         catch( Exception e )
                   send(file.getAbsolutePath());
              return false;
    }Edited by: Ankit__Gupta on Jul 24, 2009 1:59 AM

    the network is working perfectly fineThe network is timing out your connect attempts so there is something wrong somewhere.
    catch will give the error msg or the entire try block. but will it give for the exact line?Suppose you try it yourself and find out?
    by the way i m catching the exception i m just not printing it.Yes I am aware of that, thanks, I can read, and that's exactly what I commented on, and by the way Java forces you to catch the exception, so there's no virtue in that. On the contrary. Catchingand ignoring the exception is why its taken five days to debug this simple problem. Never do that.

  • How to upload file from client to server

    Can someone please help.
    User needs to browse file on his desktop and upload file using browse button. This file should then be uploaded to the server. I am using javascript in the front end and servlet in the back.
    Any help will be highly appreciated.
    Thanks,
    Indrasish

    Jakarta Commons FileUpload is the standard way of doing the file uploading these days. You can find source, binaries and documentation at the Jakarta Site http://jakarta.apache.org/ . The Commons has a number of subprojects, so start with the Commons libraries, then find FileUpload.
    Brian

  • Copying .sdf file t client's PC during Installation

    Hi,
    I started using SQL Server Compact Edition 3.5, i designed a sample windows application form using vs 2005 C#.
    I want to deploy the application and when i install the setup file in another system, i need to  install the required setup files like sqlce.exe files and also copy the .sdf file into that system.
    Thanks in advance.

    I have soem suggestions here:
    http://erikej.blogspot.dk/2013/10/sql-server-compact-4-desktop-app-with.html (and also other posts on same blog)
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

  • Can't copy large files to E4200 Media Server

    I've rolled back my E4200 router to the old firmware 1.0.0.1, then set up a media server.
    It generally works (e.g. it streams pre-existing media files to other devices). I can copy to this external drive small (say, < 1 MB) files. 
    The drive has enough free space. 
    However, I cannot copy to this external drive large (e.g. 700 MB) files.

    Just chatted with a Cisco rep who offered a solution (which did not work):
    On the "Setup -> Basic Setup" tab,
    under "Internet Setup -> Optional Settings(required by some Internet Service Providers)" in the left column,
    change "MTU" from "Auto" to "Manual", and then
    change "Size" from 1500 to 1365.
    Click "Save Settings" on the bottom.
    (Mod Note: Agents Tech ID removed.)
    (Original poster's note: not a solution.)

  • How do I copy my files from my host server acct to my (new) hard drive?

    I recently purchased a new
    laptop after a crash.  I was able to install DW (CS3)
    and my files are all intact.  But I need to put the files on my hard drive so that I can edit them offline.  As it is, everytime I open DW, I'm connected to the host.  Previously, I could connect when I was ready to post.   So, the question is: how do I transfer my images and html web pages to my hard drive. Once that is done, I should be able to work offline, right, from my computer.  Thanks.

    Define a Local Site folder in DW.  This is where your site files will be stored locally.
    Open DW, hit GET (Down Arrow) to download files and folders from your remote server.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Help with setting up pointing clients to server..

    Okay, here is my situation. We have many macs on the network that currently don't login, open machines. We do have Blue Socket on the wireless, but otherwise the machines are all open. We want to get most, if not all, the macs to authenticate against LDAP or AD (preferrably AD). So I guess we need the Macs clients to go directly to the AD and authenticate, and also have the Macs controlled by the server (privledges, software update, printing, etc).
    Question one:
    Best way to approach this?
    Question two:
    How do you get the clients to point to the server if they are getting their IP's from another DHCP server.
    (would this be done in directory access via ????)
    All the info you can provide would be greatly appreciated.
    Thanks
    Dave

    This might be useful...
    http://www.afp548.com/article.php?story=20040915152755925&query=AD%2BIntegration

Maybe you are looking for

  • Safari slow on Apple's website

    Safari runs dismally slow on apple's website, which is why i'm posting this using Firefox. What's the deal Apple?

  • A question about /usr/include/sys/select.h header file

    good day! i hope i can get some help about this and i would be very grateful if my question will be answered. i have a question regarding the select.h header file that we include in our programs when we use the select(3C) function. * Select uses bit

  • Job Scheduling-restriction based on time

    Hi Everybody, I want to schedule a job so that it should not run between 5pm to 6pm everyday and rest of time it should run. I am not getting any restriction option to satisfy this condition. Anybody having any idea ?? Regards.

  • How do run my library from an external drive?

    How do run my library from an external drive? I've tried changing destination locations but nothing seems to work. help please

  • Old Behance profile failed to merge with new CC account.

    I recently attempted to login to my old Behance account, and was prompted to login via my adobe account (which I assume was the same email as the older behance profile).  It seems to not have merged the two accounts; how do I pull the profile from ht