Usage of ZipSource #1757
-
I have a use case to load profiles compressed in tar/rar/.tgz formats. Does the ZipSource support read of compressed files other than .zip? Is there any way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @vivektk84, Internally we use the C# class So, we will discuss this in our team and see if we can put this in our SDK. You can also create a TarSource class (for example) yourself that implements the |
Beta Was this translation helpful? Give feedback.
Hi @vivektk84,
Internally we use the C# class
System.IO.Compression.ZipFile
to extract the file and this class is not able to read tar/rar/.tgz formats. Therefore we have to change theZipSource
class to make this possible (actually the internal classZipCacher
). At first sight it does not look very hard to accomplish that.So, we will discuss this in our team and see if we can put this in our SDK.
You can also create a TarSource class (for example) yourself that implements the
IAsyncResourceResolver
orIResourceResolver
interface. For inspiration you can have a look at this source code of ZipSource.cs.