users@jersey.java.net

sending word doc file as attachment using jersey-multipart [C1]

From: Vidhya MAHADEVAN <vidhya.mahadevan_at_sgcib.com>
Date: Wed, 29 Apr 2009 14:21:42 +0530

Hello,
I have a requirement to send a word doc file to a RESTful service built
using Jersey 1.0.3.
I am using jersey-multipart for this purpose.
The file is sent. But then, I have a problem with the file being unreadable
although the number of bytes of the source and destination file are the
same.
This works well with txt or XML files though
I read some posts by Craig Mclanahan on custom MessageBodyWriters.
Would you have any samples for custom MessageBodyWriters that can handle
word doc, excel files, exe files ?


Appreciate any response,
Vidhya





                                                                            
                                                                            
                                                                            

















*************************************************************************
This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or
falsified.
                              ************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes
par le secret professionnel.
Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
*************************************************************************