简体   繁体   中英

How to store files in zip / rar archive with Xamarin Android?

I´m working on an app where I need to store pictures in an archive and send them as attachment in email.

How can I create a zip file / rar file and save the pictures in it?

I´ve been searching all day long and nothing works for me. Tried this for example: http://stacktips.com/tutorials/android/how-to-programmatically-zip-and-unzip-file-in-android

Thanks!

I use SharpLibZip.Portable library ( http://icsharpcode.github.io/SharpZipLib/ ) . You can get it in your Nuget Package Manager.

It works fine in Android and UWP (not proved for me in iOS).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM