情况
质询
代码如下
byte[][] pdfDoc= new byte[1][];
byte[] outputDoc = File.ReadAllBytes(@"d:/test.pdf");
for (int x = 0; x < pdfDoc.Length; x++)
{
pdfDoc[x] = outputDoc;
}
Run Code Online (Sandbox Code Playgroud)
但它失败了,无法从d:/test.pdf位置读取文件.谢谢.
我认为这对你有用:
byte[] bytes = File.ReadAllBytes("c:\\folder\\myfile.pdf");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13478 次 |
| 最近记录: |