• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

uploading files in http

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are trying to upload doc (ms word document) or text files with and without graphics using servletinputstream. The upload is okay whereas when you view the uploaded file it looks garbled, whereas zips, pdf and ini files are okay.
-----------------------------7d319f4580644
Content-Disposition: form-data; name="FILE1"; filename="C:\Data\mydoc.doc" Content-Type: application/msword
��� � > �� ! # ���� ��������������������������������������������������
����������������������������������������������������������������������������������������������������
����������������������������������������������������������������������������������������������������
��������������������������������������������������
��������������������������������������������������
��������������������������������������������������
�������������������������������
Can someone sugguest a way to exporting the doc and text files without corrupting it. One of the reasons to used servletinputstream to accomadate very large size upto 1 to 2 GBytes.
Any help is appreciated,
thanks
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
zip the doc and send it! :-)
thanks
maulin.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you viewing the uploaded file using Word, or some other program? The "text" you show looks a lot like you're viewing a valid Word document using a plain text viewer (like notepad or vi). That won't work. Your doc is probably fine; you just need the right viewer.
 
reply
    Bookmark Topic Watch Topic
  • New Topic