Link to home
Start Free TrialLog in
Avatar of k_suchdeva
k_suchdeva

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of yongsing
yongsing

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of binoysamuel
binoysamuel

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.
Points awarded PAQd.

SpideyMod
Community Support Moderator @Experts Exchange