private Dictionary <string, object> _getAsBlob(string type = "image/jpeg", int quality = 90) { MemoryStream stream = getAsEncodedStream(type, quality); File blob = new File(new List <object> { stream }, new Dictionary <string, string> { { "name", this.name }, { "type", type } }); Moxie.compFactory.add(blob.uid, blob); return(blob.ToObject()); }
public Dictionary <string, object> getResponseAsBlob() { if (_response == null) { return(null); } File blob = new File(new List <object> { _response }, new Dictionary <string, string> { { "name", _url.LocalPath } }); Moxie.compFactory.add(blob.uid, blob); return(blob.ToObject()); }
public Dictionary<string, object> getResponseAsBlob() { if (_response == null) { return null; } File blob = new File(new List<object>{_response}, new Dictionary<string, string>{{"name", _url.LocalPath }}); Moxie.compFactory.add(blob.uid, blob); return blob.ToObject(); }
private Dictionary<string, object> _getAsBlob(string type = "image/jpeg", int quality = 90) { MemoryStream stream = getAsEncodedStream(type, quality); File blob = new File(new List<object>{stream}, new Dictionary<string,string>{ { "name", this.name }, { "type", type } }); Moxie.compFactory.add(blob.uid, blob); return blob.ToObject(); }