zip - Windows phone 8 download then unzip to isolated storage -
I am writing a Windows Phone 8 application which has the following functions
- A ZIP Download the file from the Internet
- Remove it in separate storage
I am looking for a solution to deal with it, but not found once. Please help if you have any suggestions.
Thanks in advance!
Edit:
I've divided it in several steps:
-
Check whether storage Available - Done
-
Check if the file is compressed - Background to download in the local folder and display the information to the user Use the transfer (or other method) (percent, ect.) - not now
not yet -
Do
-
After that I ... -
by using public async zero UnzipAndSaveFiles (stream stream, string name) {IsolatedStorageFile IsoStore = IsolatedStorageFile.GetUserStoreForApplication ()) {(Var zipStream = New Azper (stream)) {Foreach (string file in zipStream.FileNamesInZip) {string fileName = Path. GetFileName (file); If (! String.IsNullOrEmpty (fileName)) {StorageFolder folder = ApplicationData.Current.LocalFolder; Folder = Wait for the folder. Cretefolder Async ("html", Creation Collins option. Open if axis); Storage file file1 = wait for the folder. Create File Async (Name, CreationSyncrationOption. ReplaceExisting); // save file entry (var author = new streamer (waiting for file1.OpenStreamForWriteAsync ()) {author. Write (file); }}}}}}
This code has not been checked (because I have not downloaded any file).
Can someone tell a thing that should be corrected (enhanced)? Can anyone help me remove password-protected file (obviously I have a key)?
Comments
Post a Comment