locked
Web service SOAP Vs JSON /REST

    Question

  • I need some suggestion/opinion about which web service will enhance download time or speed for downloading data such as Image, PDF file and other media files base on SOAP , JSON, REST Webservices.

    1) Download Images.

    I had used SOAP webservice for images base on  Base64.

    Will download time shorter using JSON (Or REST)  if image in Base64 or image in binary.  I have not used this before.

    Thanks

    Thursday, November 13, 2014 3:47 AM

Answers

  • An image will be significantly smaller (and therefore faster) in binary rather than base64 encoded.

    Thursday, November 13, 2014 4:02 AM
    Owner
  • REST is more modern and has less overhead than SOAP, but the image sizes will greatly outweigh the overhead from the protocol wrappers. The big difference will be downloading the images as binary rather than as base64 text.

    Thursday, November 13, 2014 6:52 PM
    Owner

All replies

  • An image will be significantly smaller (and therefore faster) in binary rather than base64 encoded.

    Thursday, November 13, 2014 4:02 AM
    Owner
  • Hi Rob,

    Thanks.

    I just need to highlight my scenario:

    1) Image size captured by Win8 Tablet can be anywhere from 1-5 MB.

    2) When downloading images, the number of images can be 50 or more.

    So which one to use?

    Thursday, November 13, 2014 4:27 AM
  • REST is more modern and has less overhead than SOAP, but the image sizes will greatly outweigh the overhead from the protocol wrappers. The big difference will be downloading the images as binary rather than as base64 text.

    Thursday, November 13, 2014 6:52 PM
    Owner