public bool UpdateDescription(string sessionID, Stream data) { var content_type = WebOperationContext.Current.IncomingRequest.ContentType; byte[] bytes; using (var ms = new MemoryStream()) { data.CopyTo(ms); bytes = ms.ToArray(); } var s = System.Text.Encoding.UTF8.GetString(bytes); return(DataMarshal.UpdateDescription(sessionID, s)); }