WebSphere HTTP Server - downloading file useing servlet

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > June 2005 > downloading file useing servlet





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author downloading file useing servlet

2005-06-12, 2: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 arabic 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 upoading and if yes how can i get it
thanks alot
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com