I want to pass some zipped XML files into SQL Server 2008 which is compatible with .NET 2.0. (implementing c# to be imported as CLR).
I downloaded a .zip file from an API and this .zip file contains several XML files. Is there any way to decompress the get the XML's using .NET 2.0? The use of external libraries is not possible.
The export of the file is done by this code:
byte[] varbinary = GetStreamFileResult(..);
string tempPath = Path.GetTempPath()+ "temp.zip";
File.WriteAllBytes(tempPath, varbinary); // Requires System.IO
In my research I found solution like this but they are not applicable to my case.