File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Unable to extract binary attachment correctly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to extract binary attachment correctly" Watch "Unable to extract binary attachment correctly" New topic
Author

Unable to extract binary attachment correctly

Ashfaq Framewala
Greenhorn

Joined: Oct 24, 2004
Posts: 4
Hi,

I have an application which sends SOAP message over JMS (TIBCO EMS). This SOAP message contains a binary attachment (swa). I have written following Java code to extract the binary attachment but when I write this attachment to a file, the file format is corrupted and size of the output file generated is different from what is sent as an input. Can you please help in finding out what is wrong with this code?



Thanks for your help!
Regards,
Ashfaq

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to extract binary attachment correctly
 
Similar Threads
File Upload
Send PDF in JavaMail
Reading From a Binary Large Object(BLOB)
Servlet sends zip file to client