从url读取pdf文件到字节数组 [英] read a pdf file from url to to byte array
本文介绍了从url读取pdf文件到字节数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在XML WebResponse
中,我得到一个URL标记,该标记具有指向PDF文件的链接. URL值的示例是:https://www.member-data.com/files/hb/c8955fc4d6160ec0fd87f4879c6496d3.pdf
).我必须将此PDF转换为字节数组,如何在C#中做到这一点?
In an XML WebResponse
I get a URL tag which has a link to a PDF file. Example of the URL value is: https://www.member-data.com/files/hb/c8955fc4d6160ec0fd87f4879c6496d3.pdf
). I have to convert this PDF to a byte array, how do I do this in C#?
推荐答案
您可以使用 WebClient.DownloadData()
.
You can use WebClient.DownloadData()
.
这篇关于从url读取pdf文件到字节数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文