In my application, I get a ZIP file with 4 PDF documents during a call to My API. I save the zip file using the code below.
var rootFolder = FileSystem.Current.LocalStorage; var file = await rootFolder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting); using (var fileHandler = await file.OpenAsync(FileAccess.ReadAndWrite)) { await fileHandler.WriteAsync(document, 0, document.Length); }
After saving the document
How can I unzip and individually save PDF documents to my phone? Can anyone contact me to solve this problem. I found SharpZipLib and Iconic zip libraries for unpacking code; But only a point network implementation, if found in the documentation, does not know how to integrate it into Xamarin Forms.
Please, help.
source share