• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Reading and Writing MS Word .doc from servlet ...

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
ASP running on IIS gives the .doc data to the servlet. In the servlet, am reading using BufferedInputStream and then writing into Servlet outputStream. Iam able to save the document on the web but the file could not be opened with MS WORD. Looks like MS WORD is not binary data but some kind of microsoft proprietary data some OLE related. Any insights in to why i could not have proper data written using java ?
Thanks
Ashok
[ July 23, 2003: Message edited by: Ashok Talluri ]
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's nothing special about .doc files that would prevent your doing this; you would, of course, need to be careful about not altering the data in any way (by adding newline characters, for instance, or appending or prepending any additional data.) If you post some code, maybe we could tell you what you're doing wrong.
reply
    Bookmark Topic Watch Topic
  • New Topic