transferring the file using HTTP

Posted on 2006-04-18
Last Modified: 2010-03-31
has anyone known how to transfer the file via HTTP?

What is the software requirement? Web Server? or Networking setting???

Is it running on web? Can I do it in JSP or just java application?

I have no idea how to start??

Question by:LeanMoreTryMore
    LVL 92

    Expert Comment

    if you mean to upload a file then you wneed to use multipart/form request

    apache upload provides support for this on the server side
    on the client side you can use httpclient

    Author Comment

    Sorry I dont make it clear enough

    I mean the file need to be transfered from one location to another location. Like B2B

    From example,
    Company A has created a data file which needs to be transferred to Company B via Http. is it via the web site or something..I really dont have any idea

    Can we able to do it?

    Our old system is using E-mail as an data transport?
    But our client wants to use http? Unfortunately I dont have this knowledge to carry out the work.

    I need technical information so I can start

    LVL 92

    Accepted Solution

    there are many ways you can do it :)

    To use http you'd typically have a web container to recieve the files and send them using multipartform request that I mentioned above.

    Author Comment

    Does our client need to register the web site because their web applciation is run as a intranet or internet? how does another company receive the file? i thought it must through the network? but how?

    if they register the web site as an internet application i think we can do it, isn't it??? please correct me if i am wrong.

    LVL 92

    Expert Comment

    you need *something* running on the server that is to recieve the files, if using http this would typically be a web container for example tomcat. The server would just need to be visible to the client that needs to send it files.

    Author Comment

    Thanks object.

    Yes. one of our web container is using Tomcat.

    Does that mean we can transfer the file from web intranet applcation?

    How can the file be transferred to one location to another location if there is no network link it together?
    Really dont understand.

    Do you have any link provided us some information about that?
    LVL 30

    Expert Comment

    Try using the FileUpload tool from Commons:
    LVL 1

    Assisted Solution

    You also can use the Web service for this problem (run on http)
    the destination you can write a servlet with function to receive data
    and the source can invoke the function on servlet to tranfer files

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    If you have upgraded to Java2 update 10 on a Microsoft Windows client, you may have discovered that your Java application does not work as it did before.  For example, the colors of your Java2D graphic may be all wrong for no apparent reason. Aft…
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    The viewer will learn how to implement Singleton Design Pattern in Java.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now