File compression libarary for iOS/Android

Scenario:

I have a folder which has to be compressed to be brought down to a single file. Then upload it to the server. Similarly for file retrieval as well. Though I have experience with Unity, I have little to none with zip compression.

Target Platform :
iOS & Android && my dev machine is Mac OS

Consideration:
I have to compress NOT for reducing the SIZE of the file but just for working with a single file.
Hence speed and ROBUSTNESS is very important.

Request:

  • Can you point me to the right libraries/plugins to use
  • This project is not a hobby but a “go to market” project - hence I want to know how to properly test it as well
  • And most of all, the files could be huge media files - hence I want a solution that would not spike on RAM.

For example I want to avoid situation like this
byte[ ] results = www.downloadHandler.data;
OnUnityWebRequst. It literally creates a duplicate copy of the byte array before it sends you one.

Thank you,
Karsnen

AssetBundles is the built in solution.

1 Like

I don’t think you could use Assetbundles runtime. Can it only be done within the Unity Editor?

AssetBundles are intended to deliver parts of your game as needed at runtime.

1 Like