Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How can I extract a file from a System.IO.Packaging.Package hosted on a URL, without downloading the package?

$
0
0

I need to get the stream associated with the file (if present) from a OPC based package hosted on a URL, without downloading the package, as the package could be >1GB as well. I just need an XML file from the package.

I came across System.IO.Packaging.Package class which can work with packages (OPC based) but I am unable to find a way to extract a file without downloading the package.

Is there any way I can get it working with non-seekable streams without downloading or copying stream to MemoryStream etc. Just to re-iterate I just need a small XML file from a huge (>1GB package).

Thank you.



Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>