StreamGetByte Method (StreamReader) |
Namespace: SIC.File
[Missing <param name="pStreamReader"/> documentation for "M:SIC.File.Stream.GetByte(System.IO.StreamReader)"]
[Missing <returns> documentation for "M:SIC.File.Stream.GetByte(System.IO.StreamReader)"]
In web controller action Create.
Data item complement with file data (byte array)
protected override ActionResult CreateOnActionResultPostSave(ref TemplateFile pItem) { System.Web.HttpPostedFileBase lFile; lFile = Request.Files[0]; System.IO.StreamReader lStreamReader = new System.IO.StreamReader(lFile.InputStream); pItem.Content = SIC.File.Stream.GetByte(lStreamReader); return base.CreateOnActionResultPostSave(ref pItem); }