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

Similar Messages

  • HT3263 I am trying to transfer files from my MacBook Pro (using Mac OSX 10.6.8) to MacBook Air (Mac OSX 10.7.4) using Migration Assist via WiFi connection.  The two macs cannot find each other.  any suggestions

    I am trying to transfer files from my MacBook Pro (using Mac OSX 10.6.8) to MacBook Air (Mac OSX 10.7.4) using Migration Assist via WiFi connection.  The two macs cannot find each other.  any suggestions

    Try this article - http://support.apple.com/kb/HT4889.
    If it doesn't help, post back in this thread.
    Best of luck,
    Clinton

  • 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.

  • Before lollypop upgrade I could transfer files from LGg3 to computer using the LG supplied USB cord. How do I fix this bug?

    Before lollypop upgrade I could transfer files from LGg3 to computer using the LG supplied USB cord. How do I fix this bug?

    Is the G3 not recognized by the PC?  Or is it recognized and you don't see the ext SD card?  Are you able to use the Wireless Storage feature to transfer?  Do you have updated USB drivers from the LG support site?

  • 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

  • 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

  • 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 get pdf file from sap presentation server using java connector

    Hi Friends,
    with the below code i am able to get po details in pdf in presentation server.
    DATA : w_url TYPE string
           VALUE 'C:\Documents and Settings\1011\Solutions\web\files\podet.pdf'.
    CALL FUNCTION 'ECP_PDF_DISPLAY'
            EXPORTING
              purchase_order       = i_ponum
           IMPORTING
      PDF_BYTECOUNT        =
             pdf                  = file  " data in Xsting format
    *Converting Xstring to binary_tab
          CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
            EXPORTING
              buffer                = file
      APPEND_TO_TABLE       = ' '
    IMPORTING
      OUTPUT_LENGTH         =
            TABLES
              binary_tab            = it_bin " data in binary format
    **Downloading into PDF file
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
      BIN_FILESIZE                    =
              filename                        = w_url
              filetype                        = 'BIN'
             TABLES
              data_tab                        = it_bin
    when i am using java connector , to retirve the file from presentation server , the follwoing error i am getting...
    init:
    deps-jar:
    compile-single:
    run-single:
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Error in Control Framework
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
            at PdfGen.<init>(PdfGen.java:35)
            at PdfGen.main(PdfGen.java:78)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)
    i debugged too, problem with <b>gui_download......</b>
    I am very glad to all with your suggestions!!
    Regards,
    Madhu..!!

    Hi
    You can try to create an external command (transaction SM69).......sorry I've forgotten,,,,they works on application
    How do you call CL_GUI_FRONTEND_SERVICES=>EXECUTE?
    Max
    Edited by: max bianchi on Oct 13, 2011 10:27 AM

  • How do I transfer files from pc to mac using an external drive?

    I get the that I copy files from the PC to the external drive and then copy to mac. What I do not know is what format does the external drive need to be? FAT32 is somewhat limiting.

    I don't do Windows, but Macs can read & write ExFAT, too.
    If the PC has an app that will format & write any variant of Mac OS Extended, those are native to Macs.
    You can also transfer via network, if that's convenient.  See the Use a Network Connection section under Manually Migrating in Switch Basics: Migrate your Windows files or system to your Mac.

  • Reading Files from client directory folder using servlets or struts.

    HI All,
    Could you please help me out int the below query.
    I want read all files from paricular directory folder from the client machine in web application. I am able to do it from my local machine. but when I am try to do it from some other machine I am not able to get the file list.
    It is very urgent ..please hep me ASAP.

    It should be problem with the file permissions in your client machine ???Hardly.
    @OP: a servlet executes at the server. It doesn't haved any access whatsoever to the client machine.

  • Getting the file from IIS FTP Server using ALSB

    Hi,
    I want to extract a file from FTP server in ALSB.I am using ALSB2.5 and Microsoft IIS FTP Server.
    Now i want to know that
    1.Do i need to configure a Proxy service or Business Service to poll a file from FTP server?
    2.How to read the contents of the file once the File comes in?
    Regards,
    Indu Garg

    You need to configure a Proxy service for the polling.
    The contents of the file will be inside the context variable $body.

  • HT1386 how to transfer files from my iphone while using itune

    i m using iphone for very first time i want to tranfer some files from ma laptop to my mobile and want to delet some files from my iphone..i have downloaded itunes in ma laptop. please assist me and do the needful

    What files are you trying to transfer to your phone?  What files you want to delete from your phone?

  • How to transfer files from PC to Mac using Ethernet cable?

    I am a brand new PC to Mac convert and loving it. I'm just having trouble transferring my files from my PC to my MacBook Pro. I have my PC and Mac connected with an ethernet cable. I'm just not sure what steps I need to take from there. I guess I have to turn on file sharing on my PC but I'm pretty much lost from there. Is there a tutorial or how-to on how to do this? I tried the one on the Apple site but it didn't really help that much

    See if one of these methods will work for you:
    http://docs.info.apple.com/article.html?artnum=75320
    http://www.apple.com/getamac/movetomac/network.html

  • 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

  • How to transfer file from PC to mobile using Avetana SDK

    Hello,
    I am programming in the J2SE environment and using Avetana bluetooth SDK which implements JSR-82. I have the Microsoft Bluetooth Stack.
    I can connect to my mobile using the following code but I don't know how to send a file. This code sends some data but the mobile does not acknowledge it.
    Here is the code. I would be very grateful if someone could help.
    public class BluetoothClient implements DiscoveryListener {
    LocalDevice local = null;
    DiscoveryAgent agent = null;
    int[] attrSet = null;
    RemoteDevice btDev = null;
    String serviceURL = null;
    ClientSession con = null;
    HeaderSet hdr = null;
    public static final UUID RFCOMM_UUID = new UUID(0x0003);     
    public BluetoothClient() throws Exception{
    local = LocalDevice.getLocalDevice();
    agent = local.getDiscoveryAgent();
    agent.startInquiry(DiscoveryAgent.GIAC, this);
    public void deviceDiscovered(RemoteDevice btDevice,DeviceClass cod){
    btDev = btDevice;
         System.out.println("Device discovered " +
    btDevice.getBluetoothAddress());
    public void servicesDiscovered(int transID, ServiceRecord[] servRecord){
         System.out.println("Discovered a service ....");
         for(int i =0; i < servRecord.length; i++){
              serviceURL = servRecord.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,
    true);     
         System.out.println("The service URL is " + serviceURL);     
    public void serviceSearchCompleted(int transID, int respCode){
              System.out.println("Service search completed ........... ");
              System.out.println("Opening a connection with the server ....");
         (StreamConnection)Connector.open(serviceURL);
              OutputStream out = filestream.openOutputStream();
              String msg = "hello.txt";
              out.write(msg.getBytes());*/
              output.close();
    public void inquiryCompleted(int discType){
         System.out.println("Inquiry completed ... ");
         UUID[] uuids = new UUID[1];
         uuids[0] = new UUID("1106",true);
         try{
              if(btDev == null){
         System.out.println("No device has been discovered, " +
    "hence not worth proceeding exiting .... ");
         System.exit(1);
    System.out.println("Now searching for services ........ ");     
         agent.searchServices(attrSet, uuids, btDev, this);
         catch(BluetoothStateException e) {System.out.println(e.getMessage());}
    Edited by: determinedCoder on Dec 29, 2007 1:57 PM
    Edited by: determinedCoder on Dec 29, 2007 2:52 PM

    Hi all,
    Don't worry about this - With a little bit of reverse engineering, I figured it out. If anyone else is having the same trouble, then reply to this thread and I'll see if I can help. If anyone also knows how to send an sms message via a bluetooth connection from a pc to a mobile phone using avetana, then that would be great.

Maybe you are looking for

  • Error while deploying on a cluster

    Hi all, when I deploy my WebApp on a cluster I recieved the following error: ####<Dec 13, 2006 5:18:14 PM CET> <Debug> <Deployer> <eb0bzl58> <admdwsgem> <ExecuteThread: '0' for queue: 'weblogic.admin.RMI'> <<WLS Kernel>> <> <BEA-149078> <Stack trace

  • Dynamic sql to insert data in table

    hi I wish to insert 5 records in a table at runtime. i.e the data should be entered at runtime. I tried using a for loop but failed .. I think it is possible thru dynamic sql ... could someone help me out .. regards susmitha

  • Mountain Lion Missing Report Safari Bugs Menu Item?

    I recall a Bug reporting menu option in Safari which seems to have disappeared in the latest version in Mountain Lion. Or am I missing it? Perhaps the Apple folks think Safari is now perfect. ;-) I was trying to view photos of this Hilton http://www.

  • Opening more than one modal dialog for a single parent using Swings

    I have a parent frame to which I opened a modal dialog on that and after that there is a situation for me to open another modal dialog for the same parent window. If I have two modal dialogs opened for the same window, I am not able to click any of t

  • Job cannot run  properly

    hi im developing a data warehouse for information system (IS). i've already finish develop it using OWB 9i. the problem i've is when i want to schedule a job, it cannot done properly which means the status are fail. i alwayz got error msg wb_module_r