program that
can upload files onto Yahoo Geocities, so I searched
the web for available resources. I found
MrPostman-1.0.3beta2.jar (at :
http://sourceforge.net/search/ ) that can help me to
login to Yahoo and get to the file upload page, then I
found HttpClient that can upload files by posting
();
}
}
}
==
-Original Message-
From: Yong Chen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 01:03
To: [EMAIL PROTECTED]
Subject: file upload (PUT method) progress report
Hi,
I'm using putmethod to put (large size) file on server. After calling executeMethod(),
I want to know
:
this.listeners.invokeListeners?
Thanks,
Yong Chen
-Original Message-
From: Kalnichevski, Oleg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 12:46 AM
To: Commons HttpClient Project
Subject: RE: file upload (PUT method) progress report
Yong,
You should be using
Hi Yong,
1. I'm actually using putmethod, not postmethod, but I assume your
suggest applies to putmethod too, is it correct?
Yes, the same thing will work for both methods.
2. Since my put will put (upload) a local file onto server, so I
think ProgressInputStream will take a FileInputStream as
That's great, thanks a lot Mike.
Yong Chen
-Original Message-
From: Michael Becke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 4:34 PM
To: Commons HttpClient Project
Subject: Re: file upload (PUT method) progress report
Hi Yong,
1. I'm actually using putmethod
Hi,
I'm using putmethod to put (large size) file on server. After calling executeMethod(),
I want to know the progress or the percentage of file uploaded so I can report it to
UI.
1. Is there any to do it now?
2. If not, are there any plans for adding it to the future release?
Thanks,
Yong
Hi Yong,
The only way to get progress at the moment is to track the reads on the
InputStream given to PostMethod.setRequestBody(InputStream).
Mike
On Nov 10, 2003, at 7:02 PM, Yong Chen wrote:
Hi,
I'm using putmethod to put (large size) file on server. After calling
executeMethod(), I
Hi.
I'm using the MultipartPostMethod to upload images to a server. I want
to add a progress meter that shows what percentage has been uploaded
along with some other statistics (time remaining, speed, etc).
I spent some time looking around and it looks like the code that I need
to add to
option.
Cheers
Oleg
-Original Message-
From: Jay Buffington [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 09:46
To: [EMAIL PROTECTED]
Subject: File Upload Progress Meter
Hi.
I'm using the MultipartPostMethod to upload images to a server. I want
to add a progress meter
I think it's easier to create a custom FilePartSource implementation
which creates the events or can be polled by your application.
Odi
Kalnichevski, Oleg wrote:
Jay, The only solution that I can think of is to get hold of
HttpClient source code and extend it with a feedback mechanism of
your
Yes, this is how I have used it in the past. I wrapped the InputStream
to be returned from PartSource.createInputStream() in a class that
counted the number of bytes read and periodically fired an event.
Mike
On Tuesday, June 10, 2003, at 04:13 AM, Ortwin Glück wrote:
I think it's easier to
Daniel Walsh wrote:
I was under the impression, though, that the implementation that you spoke
of would require an HTML form, or some other type of UI - which my
application does not use. Is that not true?
No of course not. HttpClient provides all you need to tailor an
appropriate POST
actually a UI
for this application, in the end I want to automate the process. I'm
not sure if there is a better way of doing a file upload such as this,
but what I've been trying to do uses a couple of requests to the Servlet
to implement the entire file transfer:
[snip]
ServletInputStream
-
From: Daniel Walsh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 9:41 PM
To: Commons HttpClient Project
Subject: File Upload
I'm trying to use HttpClient's PutMethod to transfer a file
from my client application to the associated Servlet. There
isn't actually a UI
Thanks for responding so quickly Martin.
I was under the impression, though, that the implementation that you spoke
of would require an HTML form, or some other type of UI - which my
application does not use. Is that not true?
Daniel
The usual mechanism for uploading files is to use the POST
15 matches
Mail list logo