kineapps / flutter_archive

Flutter plugin for creating and extracting ZIP files.
https://pub.dev/packages/flutter_archive
BSD 3-Clause "New" or "Revised" License
59 stars 44 forks source link

Is there any way to extract .tgs file? #50

Closed JulyWitch closed 2 years ago

JulyWitch commented 2 years ago

I'm trying to extract .tgs (telegram animated sticker) files but it gives me exceptions. I have changed the extension to .zip but it didn't work either.

Uncompress .tgs file

PlatformException (PlatformException(UNZIP_ERROR, The operation couldn’t be completed. (ZIPFoundation.Archive.ArchiveError error 0.), null, null))

Renaming file with .zip extension and uncompressing it

PlatformException (PlatformException(UNZIP_ERROR, The operation couldn’t be completed. (ZIPFoundation.Archive.ArchiveError error 0.), null, null))

JulyWitch commented 2 years ago

I found out .tgs files are compressed with gzip format so I used archive package and it worked with GzipDecoder.

I close this issue.