hi all,
i am using the below code to open a n application by specifying the file path
response.setHeader("Content-Disposition", "attachment; filename="+ java.net.URLEncoder.encode(filePath) +"");
but while opening the application the path changed as D%3A%2FPrepress%2F5_Production%2FJournals%2FBalaban%2FPI10000044%2FBban_MWMS_100005%2FData%2Fset+header[3] with special characters because of the filepath changed i cant apple to use the save button.
i think the url encoder is changed the path.
pls help for my problem.
hidash_in
-9
Junior Poster in Training
Recommended Answers
Jump to PostWell, of course it is. What do you think the URLEncoder does?
You don't need to (and shouldn't) provide a path in that content header, anyway. Rather you should provide the filename only.
And you do realise, that the client (i.e. the machine from which the browser is …
All 4 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
hidash_in
-9
Junior Poster in Training
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
hidash_in
-9
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.