Download the zip folder from the remote server and unzip the folder from the silverlight application

How can I download a ZIP folder from a remote server and unzip all the files in a folder and store them in isolated storage from silver light 3 or 4 from a browser. Any suggestion please

+3
source share
4 answers

You can download the zip file, like any files with the Webclient class, see the details and examples in the msdn documentation for downloading content on demand, it even talks about how to download and get a specific file from the zip archive.

, , , , , zip.

: , , unzip Silverlight, .

IsolatedStorageFile , .

!

+5

(un) zipping open-source DotNetZip library. DotNetZip Ms-PL .

, , :

 using (ZipFile zip = new ZipFile())
 {
     zip.AddEntry("MyFileName.png", null, pngStream);

     // Save to stream from SaveFileDialog
     zip.Save(stream);
 } 
0

Silverlight SharpZipLib - Silverlight 3/4 Phone7, AES-, SharpZipLib.

- , Silverlight: UTF8.

0

http frp, GZipStream (.NET Class) /.

GzipStream: http://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx

--Jocke

-2

Source: https://habr.com/ru/post/1729886/


All Articles