【发布时间】:2011-12-11 05:23:31
【问题描述】:
我有一个文件流,我想将它传递给一个 EXE 进行处理。这可能吗?
using (FileStream fs = File.Create(path))
{
Addfile(fs, fileinmemory.ToString());
}
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.Arguments = Addfile //filestream from above
p.StartInfo.FileName = "load.exe"; //used withabove argument to be passed into exe
p.Start();
p.WaitForExit();
【问题讨论】:
标签: c# asp.net .net upload filestream