2010-02-11 122 views
-1

我想从文件夹中获取文件并转换为二进制流。如何在C#中使用ASP.Net?文件到二进制流

+0

你所说的 '二进制流' 是什么意思? – 2010-02-11 09:07:35

+1

你卡在哪一部分?发布您的代码到目前为止。 – 2010-02-11 09:09:10

+3

这与您在其他问题中提出的问题不一样吗? http://stackoverflow.com/questions/2243064/fetch-files-from-folder – ZombieSheep 2010-02-11 09:12:56

回答

0

一个FileStream将做的工作:

using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read)) 
{ 
    // work with fs 
}