AnsweredAssumed Answered

Stream zip file in SOE

Question asked by ammarGomaa on Apr 30, 2015
Latest reply on Jun 22, 2015 by Chen_Li-esristaff

Hi Everyone,


I am try to stream zip file in SOE,


I tried this code


  responseProperties = "{\"Content-Type\" : \"application/octet-stream\",\"Content-Disposition\": \"attachment;\"}";

  var data = File.ReadAllBytes(@"c:\arcgisserver\");

  return data;


it works well when there's no parameters in SOE function but if the SOE function has parameter it returns corrupted zip file, I changed the extension of the downloaded zip file to .html and when I click on this file it opens the html page like the html of the soe function.


So can anyone advise me?



Ammar Assem.