C#实现从服务器上下载DLL文件,具体代码如下:
var fullQualifiedPathToDll = Server.MapPath("//www.submisscin.com/wap/") + "/bin/mydll.dll";
var myFileStream = new FileStream(fullQualifiedPathToDll, FileMode.Open);
var fileSize = myFileStream.Length;
var buffer = new byte[(int)FileSize];
myFileStream.Read(buffer, 0, (int)FileSize);
myFileStream.Close();
Response.BinaryWrite(buffer);
更多信息请查看IT技术专栏