• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

How to transfer Word files from server side to cleint side.

Hi ALL
I have a word file on the server side. There is a servlet which sends the file to the server side. I first set the content type of the response to application\ms-word.
Then i copy the file contents in the response but still on the client instead of opening the Word Plugin in the browser or prompting the user for file save it prints junk characters.
WHat should i do ?
Khem
0
k_suchdeva
Asked:
k_suchdeva
1 Solution
 
yongsingCommented:
Try: response.setContentType("application/msword");
0
 
binoysamuelCommented:
See the response from yongsing.
   response.setContentType("application/msword");  

In addition, the browser on the client should also be properly configured to open Word with the above mime type. If using Netscape, you can see this under Edit/preferences/Applications. This is generally the configuration. If it doesnt have this mime type mapped, it would prompt with the "open with/save" dialog.
0
 
SpideyModCommented:
Points awarded PAQd.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Tackle projects and never again get stuck behind a technical roadblock.
Join Now