SITUATION
QUESTIONS
The code is as follows
byte[][] pdfDoc= new byte[1][];
byte[] outputDoc = File.ReadAllBytes(@"d:/test.pdf");
for (int x = 0; x < pdfDoc.Length; x++)
{
pdfDoc[x] = outputDoc;
}
But it is failing, not able to read the file from the d:/test.pdf location. Thanks.
我认为这将为您工作:
byte[] bytes = File.ReadAllBytes("c:\\folder\\myfile.pdf");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.