Mobile phone "SAVE" filename problem related to servlet

M

Mullin

hi,

user views a file by browsing to a servlet at tomcat
wap/login?path=2005/4/6/63213473/1748291/&filename=cDkwMHNhbXBsZS1leGNlbC54bHMuMDAwMQ%3D%3D&msisdn=63213473

the servlet code:
....
....
response.setContentType("image/jpeg");
response.setHeader("Content-Disposition", "inline; filename=" +
saveFileName.substring(saveFileName.lastIndexOf("/")+1));
....
....

but, after user views the file on the mobile and try to SAVE it. the
filename is not the one set on the Header => filename, but instead
mobile phone uses &filename=cDkwMHNhbXBsZS1leGNlbC54bHMuMDAwMQ%3D%3D&msisdn=63213473
as the filename

any ideas on this?

thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,785
Messages
2,569,624
Members
45,318
Latest member
LuisWestma

Latest Threads

Top