Decompress  A MemoryStream with GZip

BobBarker_99 used Ask the Experts™
I have a function, the outline of which is defined in the code section below.  It takes  a MemoryStream which has been compressed using GZip.  

I know how to recreate the datatable using DataTable.ReadXML(stream As System.IO.Stream)
Im not sure how to decompress my memorystream though.  Any help?
Public Shared Function StreamToDataTable(s As MemoryStream) As DataTable

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
This page has a decompress function, which takes a string. You should be able to convert this in seconds, by just reading the entire stream into a string. There are probably other ways to accomplish this, as well.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial