Design In Context
APIs
: StreamFiles
StreamFiles
Streams file from Dashboard.
Syntax:
Public static bool StreamFiles (
string strURL,
string strPath2Save,
string strFileFUllID,
out string strFileName,
out string strErrorMessage
)
Parameters:
strURL - The dashboard URL to be queried for streaming file
strPath2Save - Path to save file
strFileFUllID - Full ID of file to be streamed
strErrorMessage - When this method returns, contains the error message, if fails otherwise, contains String.Empty
strFileName - When this method returns, contains the name of the file streamed from DashBoard, if file is available otherwise, contains String.Empty
Return value:
true if success; otherwise, false.
Example:
string strMessage = string.Empty;
string strFileName = string.Empty;
if (StreamFiles (
"http://inhyzvms8r09:16000/",
System.IO.Path.GetTempPath(),
"IPE|905675",
Out strFileName , out strMessage))
{
Console.WriteLine("File downloaded as {0}", System.IO.Path.Combine(System.IO.Path.GetTempPath(), strFileName));
}
else
{
Console.WriteLine("Failed - Error - {0}", strMessage);
}
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.