我试图从运行在localhost上的jetty服务器加载PdfDocument,但HttpClient每次都在HttpClient client = new HttpClient();
var stream = await client.GetStreamAsync(chunkURL);
var memStream = new MemoryStream();
await stream.CopyToAsync(memStream);
memStream.Position = 0;
PdfDocument loadedDoc = await PdfDocument.LoadFromStreamAsync(memStream.AsRandomAccessStream());
但是,如果我将其复制到浏览器(例如Edge),那同样的网址也能正常工作。
(例如" http://localhost:8888/data/documentation/en/pdfs.split/chunk_0001.pdf&#34)
我只是在这里忽略了什么?
p1[4]