Hello,
i using the HttpClient in a Java Applet but
if i transfer a file larger then 32MB i get a OutOfMemory.
does some others has the same bug?
greetz from Germany
Martin
Hallo Ortwin so schnell findet man sich wieder,
du hast in der einen Java NG geantwortet
>
>
http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/Ch
unkEncodedPost.java?rev=1.4.2.1&only_with_tag=HTTPCLIENT_2_0_BRANCH&view=aut
o
>
>
gruß martin
--
Hello Oleg,
> The problem is most likely caused by the PUT method buffering the request
body in order to determine its length
>
that means there is no work around WITH PUT ?
> You can avoid this problem by
>
> (1) using chunk-encoding
>
>
http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpcli
ok first thank it work now with files larger 32mb,
but there is still a another problem.
if the user transfer a large file like 32MB over a normal DSL connection
(128kbit up / 796 kbit down)
how could i find out how many bytes are send?
is there anyway?
martin
---
Hi Ortwin,
> Not from within HttpClient directly. You can however simply wrap your
> stream and count the bytes read through the respective methods.
how can i wrap it?
any sampel code?
thx
martin
-
To unsubscribe, e-mail: [EM
Hi,
yes i heard about that class.
no i dont use any swing control,
i use awt.
> Errm... Ever heard of the java.io.FilterInputStream class? It is
> intended to be a base class for such a thing linke you need. If you are
> using Swing you can just use javax.swing.ProgressMonitorInputStream.
i don
hi,
today i want to know how authentif to the server, with username:password
greetz martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hallo Roland,
nun mal auf deutsch weil mein englisch an seine grenzen kommt.
mit
"client.getState().setCredentials(null,null, new
UsernamePasswordCredentials(Name,Password));"
sollte das doch gehen oder?
was ich will ist, mich an einen websever(linux), der mit .htaccess -datei
geschützt ist anm
Danke Ronald,
hat geklappt.
nun habe ich noch das problem das er kein Dateien mit umlauten versenden
kann,z.b Übung1.txt
irgendeine idee das zu lösen?
gruß martin
PS: Ronald, du bist mir eine große hilfe.
-
To unsubscribe,