i want to use soap to transfer image from server to client,so how can i get best performance?
thanks
-
image transfer via web service (4 messages)
- Posted by: peter pan
- Posted on: February 24 2005 03:14 EST
Threaded Messages (4)
- Possible solution by Fredrik Sjodin on February 24 2005 12:23 EST
- re:Possible solution by peter pan on February 24 2005 20:46 EST
-
re:Possible solution by Alexey Titorenko on February 25 2005 02:32 EST
- re:Possible solution by Martin Straus on March 31 2005 09:49 EST
-
re:Possible solution by Alexey Titorenko on February 25 2005 02:32 EST
- re:Possible solution by peter pan on February 24 2005 20:46 EST
-
Possible solution[ Go to top ]
- Posted by: Fredrik Sjodin
- Posted on: February 24 2005 12:23 EST
- in response to peter pan
Er. First I'd make sure you really want to transfer the image using a SOAP web service. Since you would have to encode the image you would end up having to transfer more information compared to using an HTTP GET, which is supported by all web servers.
But if you have a good reason to transfer binary information through a SOAP web service you would need to encode it, typically you would use BASE64 encoding. You would then decode the information on the client.
If the binary information lends itself to it you could apply compression before the encoding, however most common picture formats are already compressed (JPG, GIF) so the benefit would be marginal (for that type of content) in relation to the cost of performing the compression. And obviously all clients would need to be able to support the compression algorithm. -
re:Possible solution[ Go to top ]
- Posted by: peter pan
- Posted on: February 24 2005 20:46 EST
- in response to Fredrik Sjodin
thanks a lot.
the image will be in the form of GIF,and how about treating it as an soap attachment.the encoding and decoding of base64 leads to poor performance -
re:Possible solution[ Go to top ]
- Posted by: Alexey Titorenko
- Posted on: February 25 2005 02:32 EST
- in response to peter pan
You are right, it is advised to send binaries as soap attachements to improve performance. -
re:Possible solution[ Go to top ]
- Posted by: Martin Straus
- Posted on: March 31 2005 09:49 EST
- in response to Alexey Titorenko
Can you bind a message to a SOAP attachment in WSDL????