downloading file useing servlet
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere HTTP Server > downloading file useing servlet




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    downloading file useing servlet  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-12-05 07:48 AM

i'm tring to download a file with arabic name using servlet .
i write this code
resp.setContentType("UTF-8");
resp.setContentType("application/binary");
String fileName=req.getParameter(PredefConstants.FILE_NAME_ATTACHED);
resp.setHeader("Content-Disposition", "attachment; filename=\"" + fileName +
 "\";");//should be put in the srvlet
resp.getOutputStream().write(fileBytes);
it works fine for the file contents but
within the dialog that notify me to save the file its name appears not in ar
abic but other encoded prameter
so if any one can know how to solve thhis problem please notify me

i alos want to ask if there is a class related to ibm for downloading and up
oading and if yes how can i get it
thanks alot





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:17 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register