IAppControllerDataItemClassImport Method (Stream, String, String) | |
Data import (partly not implemented).
Applicable on web controller by method with parameter object System.Web.HttpPostedFileBase
Namespace:
SOWIApp.Foundation
Assembly:
SOWIApp.Foundation (in SOWIApp.Foundation.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax void Import(
Stream pStream,
string pFileName = "",
string pContentType = ""
)
Sub Import (
pStream As Stream,
Optional pFileName As String = "",
Optional pContentType As String = ""
)
Parameters
- pStream
- Type: System.IOStream
Provides a generic view of a sequence of bytes. - pFileName (Optional)
- Type: SystemString
File name include path - pContentType (Optional)
- Type: SystemString
MIME content type
Remarks Examples
This example create a StreamReader from a type of Stream
string lContent;
using (System.IO.StreamReader reader = new System.IO.StreamReader(pStream, System.Text.Encoding.Unicode))
{
lContent = reader.ReadToEnd();
}
var lXMLDocument = new XmlDocument();
lXMLDocument.LoadXml(lContent);
See Also