An object-oriented programming language developed by Microsoft that can be used in .NET.
Hi @Peter Volz , You can refer to the following code to to make this function accept streams as input and output parameters.
Public Function GZipExtract(inputStream As Stream, outputStream As Stream) As Boolean
GZipExtract = False
Try
Using MyGZipStream As New Compression.GZipStream(inputStream, Compression.CompressionMode.Decompress)
Try
MyGZipStream.CopyTo(outputStream)
Return True
Catch ex As Exception
Return False
End Try
End Using
Catch ex As Exception
Return False
End Try
End Function
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.