This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending attachments from webservice to client

 
Patrick Mugabe
Ranch Hand
Posts: 132
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to send an attachment from my web service to the client. I don't want to save it to file so is it possible to pass it as a Base64 encoded string.

I am using the ByteArrayOutputStream which I convert to a byte array.

e.g byte [] byteArray = baos.toByteArray();
String strByte = Base64.encode(bytes);


I now want to pass this from the webservice to the Client. My client uses C#. My webservices run on axis.

How would I go about it or is there a better way of doing it?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AXIS should provide a mechanism for sending attachments that meets the SOAP with attachments standard. Which version of AXIS do you have?

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic