GeeCON Prague 2014*
The moose likes Servlets and the fly likes download BIG attachfile from servlet, HOW? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "download BIG attachfile from servlet, HOW?" Watch "download BIG attachfile from servlet, HOW?" New topic
Author

download BIG attachfile from servlet, HOW?

tony mao
Greenhorn

Joined: Dec 03, 2001
Posts: 15
i want to download a attachfile from servlet, but now it only can download file which size is less than 20KB.
i don't know why
actually i use the InputStream got from the attach Part, but it tell me that the InputStream.available() is 0. when download a big file(about 200KB) it seams that is blocked.
now can help me and give me a answer about the InputStream on NetWork, and why it blocked(just look like)?
any replay is appreciated, 3kx!
Pritam Banerjee
Greenhorn

Joined: May 08, 2002
Posts: 9
I'm able to download files with size uptoseveral MB's without any problem. Can you share your basic code, for us to check ?
tony mao
Greenhorn

Joined: Dec 03, 2001
Posts: 15
thank for ur replay
there is my code:

if i use while() statement to get the file content it will blocked, i guess is that problem with deploy of my IMAP server? But use OutLook to get mail attach file is OK! So what's the matter?

hope u can give me a hand.
[ May 09, 2002: Message edited by: tony mao ]
tony mao
Greenhorn

Joined: Dec 03, 2001
Posts: 15
any body knows that?
tony mao
Greenhorn

Joined: Dec 03, 2001
Posts: 15
up again
 
GeeCON Prague 2014
 
subject: download BIG attachfile from servlet, HOW?