| Author |
File get currupt if downloaded by response.getOutputStream();
|
Pritish Shirsath
Greenhorn
Joined: Apr 06, 2010
Posts: 1
|
|
Hi,
I am trying to download file (of any type pdf/rar/any etc...) using following code,
but SOME TIME downloaded file is currupted.
but when I use
insted of
It works, & download file by name "MyFile" in bin of tomcat folder.
but not work with response object.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56179
|
|
|
Please UseCodeTags (⇐ click link)
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Devaka Cooray
Saloon Keeper
Joined: Jul 29, 2008
Posts: 2691
|
|
|
"Pritish Ss", please check your private messages regarding an important administrative matter.
|
Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
|
 |
 |
|
|
subject: File get currupt if downloaded by response.getOutputStream();
|
|
|