Keep an InputStream alive and reload a page
Keep an InputStream alive and reload a page
- Subject: Keep an InputStream alive and reload a page
- From: Fabrice Pipart <email@hidden>
- Date: Wed, 13 Jul 2005 14:20:54 +0200
Hi
As I already wrote in a previous email (no answer unfortunately) I am
having problems to upload large files.
I want to have a progress bar and to be able to continue browsing the
application.
I used the code of Rochkind Jonathan available here http://wocode.com/
cgi-bin/WebObjects/WOCode.woa/1/wa/ShareCodeItem?itemId=306
I have the progress bar in a popup :-)
As soon as you try to load another page in the main window (which
waits for an answer during the upload otherwise) the upload fails :-(
But now I know why :
The input stream that is initially taken from the multipart form is
lost as soon as you try to load something in the main page.
I debuggued this in Eclipse, it exactly happens between line 192 and
199 of WOWorkerThread.runOnce() that occurs after the component's
appendToResponse
My question is :
is there a way to keep that InputStream alive and active ???
Fabrice Pipart
www.icconsulting.mc
International Corporate Consulting
25, Boulevard de Belgique
MC - 98000 Monaco
T. +377 97982104 (direct)
F. +377 97708807
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden