A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sending attachments from webservice to client
Joined: Jan 08, 2002
Oct 07, 2006 05:11:00
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
I am using the
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?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Oct 07, 2006 12:43:00
AXIS should provide a mechanism for sending attachments that meets the SOAP with attachments standard. Which version of AXIS do you have?
I agree. Here's the link:
subject: Sending attachments from webservice to client
Login page security using Servlet
How to get the string ( text ) back out....
Reading image and convert it to Base64 format
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014