You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pär Malmqvist <pa...@hotmail.com> on 2008/03/11 17:16:55 UTC

images over SOAP

Hello!
 
I am about to create a SOAP service that return images (10-50kB) stored in a database.
 
Is the best way to transport the image data as a byte[]?
Is there a large overhead from the SOAP protocol which makes the service a bit slow or do youthink it will work fine?
Any other suggestions?
 
 
/Pär 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Re: images over SOAP

Posted by Upul Godage <up...@gmail.com>.
This article should be helpful on sending binary data.
http://ws.apache.org/axis2/1_3/mtom-guide.html

Upul

On Tue, Mar 11, 2008 at 9:46 PM, Pär Malmqvist <pa...@hotmail.com>
wrote:

>  Hello!
>
> I am about to create a SOAP service that return images (10-50kB) stored in
> a database.
>
> Is the best way to transport the image data as a byte[]?
> Is there a large overhead from the SOAP protocol which makes the service a
> bit slow or do you
> think it will work fine?
> Any other suggestions?
>
>
> /Pär
>
> ------------------------------
> Express yourself instantly with MSN Messenger! MSN Messenger<http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
>

RE: images over SOAP

Posted by Pär Malmqvist <pa...@hotmail.com>.
Hi, I would like to have a solution that works for Axis1 on the server side as well.
I dont know when I am allowed to introduce Axis2 in the production environment. 
And the interoperability to .NET clients has to work as well.

Would MTOM work for Axis1?

Thanks!

/Pär



> Date: Tue, 11 Mar 2008 23:43:44 -0500
> From: csethil@gmail.com
> To: axis-user@ws.apache.org
> Subject: Re: images over SOAP
> 
> Hi,
> >  Is the best way to transport the image data as a byte[]?
> You can transport them as byte[] using either base64 encoding, MTOM or
> SwA... MTOM would be the best one among those 3 options, as it
> transports the image data as it is without encoding and it is the new
> standard.
> 
> >  Is there a large overhead from the SOAP protocol which makes the service a
> > bit slow or do you
> > think it will work fine?
> IMHO it will work fine.. Anyway the file needs to be transferred..
> SOAP overhead would not be a huge compared to the time it takes to
> transport.
> 
> thanks,
> Thilina
> >  Any other suggestions?
> >
> >
> >  /Pär
> >
> > ________________________________
> > Express yourself instantly with MSN Messenger! MSN Messenger
> 
> 
> 
> -- 
> Thilina Gunarathne  - http://thilinag.blogspot.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Re: images over SOAP

Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi,
>  Is the best way to transport the image data as a byte[]?
You can transport them as byte[] using either base64 encoding, MTOM or
SwA... MTOM would be the best one among those 3 options, as it
transports the image data as it is without encoding and it is the new
standard.

>  Is there a large overhead from the SOAP protocol which makes the service a
> bit slow or do you
> think it will work fine?
IMHO it will work fine.. Anyway the file needs to be transferred..
SOAP overhead would not be a huge compared to the time it takes to
transport.

thanks,
Thilina
>  Any other suggestions?
>
>
>  /Pär
>
> ________________________________
> Express yourself instantly with MSN Messenger! MSN Messenger



-- 
Thilina Gunarathne  - http://thilinag.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org