public void MultipartRow(MultipartTestRow row) { var fld = Encoding.UTF8.GetBytes(row.Field); var txt = Encoding.UTF8.GetBytes(row.Text); var bin = row.Bin; var output = WorkContext.Response.GetDirectOutputStreamForWriting(); output.Write(fld, 0, fld.Length); output.Write(txt, 0, txt.Length); output.Write(bin, 0, bin.Length); }
public object MultipartRow(MultipartTestRow data, bool map = true) { var result = new { ServerSays = "ECHO: You Have posted to me as ROW", Data = data, Map = map }; if (map) { return(result); } return(new JSONResult(result, JSONWritingOptions.Compact)); }
public object MultipartRow(MultipartTestRow data, bool map = true) { var result = new { ServerSays = "ECHO: You Have posted to me as ROW", Data = data, Map = map }; if (map) return result; return new JSONResult(result, JSONWritingOptions.Compact); }