Select to view content in your preferred language

SOE uploads

4433
5
09-15-2015 06:55 AM
Enguerranddes_Vaux
New Contributor III

It's possible to manage upload with SOE ?

like Uploads ?

Tags (2)
0 Kudos
5 Replies
nicogis
MVP Frequent Contributor
0 Kudos
Enguerranddes_Vaux
New Contributor III

I won't upload my SOE.

I would like to manage upload throw an SOE.

Foir exemple, upload a shapfile and add the content in a geodatabase. How to do that with SOE ?

0 Kudos
nicogis
MVP Frequent Contributor

excuse me, I haven't read with attention your question. I haven't tried but Esri does it, for example, with attachments ( http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/fsaddattachment.html ) and use post with a multi-part request as per IETF RFC1867. I try and see it if possible.

0 Kudos
nicogis
MVP Frequent Contributor

Had you try with FileReader client side js

var f = $("mydata").files[0]; 
var reader = new FileReader(); 
reader.readAsDataURL(f); var mydata = reader.result; 

'send via post'

via server soe get your data file

byte[] myDataBytes = System.Convert.FromBase64String('yourparameterstring');
0 Kudos
Enguerranddes_Vaux
New Contributor III

I'll test it and i let you know if it working

thanks for the help.

0 Kudos