Need help to compress files into ESP32

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help to compress files into ESP32

Postby Ritesh » Tue Jun 18, 2019 3:42 am

snahmad75 wrote:
Mon Jun 17, 2019 4:28 pm
I tried

https://stackoverflow.com/questions/113 ... ip-on-zlib.

It works on windows platform.

zipOpen just hangs on esp32 platform.

Unzip using zlib and minzip is working for me to Esp32 platform.

Any idea?
Sorry. Didn't look into that after.

So, zlib and minzip are working fine for ESP32 which might be helpful for others.

Thanks for update regarding same.
Regards,
Ritesh Prajapati

frankcohen
Posts: 25
Joined: Mon Apr 05, 2021 4:03 am

Re: Need help to compress files into ESP32

Postby frankcohen » Mon Apr 05, 2021 4:06 am

Kind of late to the party, I'm sorry. I just saw this post today. See my developer journal article at https://www.reddit.com/r/arduino/commen ... tions_for/ -Frank

AjitSingh
Posts: 10
Joined: Sat Jun 25, 2022 11:24 am

Re: Need help to compress files into ESP32

Postby AjitSingh » Wed Jul 06, 2022 8:37 am

Hie,
I'm also stuck at similar problem. In my case i have to download an archive file(don't matter anything is file zip or tar.gz depends on what esp support). downloading file from server is not issue. how to unzip it? that archive support to have more than 2 files in it.
I'm using esp-idf v4.2.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help to compress files into ESP32

Postby Ritesh » Thu Jul 07, 2022 4:40 am

AjitSingh wrote:
Wed Jul 06, 2022 8:37 am
Hie,
I'm also stuck at similar problem. In my case i have to download an archive file(don't matter anything is file zip or tar.gz depends on what esp support). downloading file from server is not issue. how to unzip it? that archive support to have more than 2 files in it.
I'm using esp-idf v4.2.
Hello,

You can use zlib and minzip libraries as per your requirements which can be feasible to do it.
Regards,
Ritesh Prajapati

AjitSingh
Posts: 10
Joined: Sat Jun 25, 2022 11:24 am

Re: Need help to compress files into ESP32

Postby AjitSingh » Thu Jul 07, 2022 10:14 am

Ritesh wrote:
Thu Jul 07, 2022 4:40 am
AjitSingh wrote:
Wed Jul 06, 2022 8:37 am
Hie,
I'm also stuck at similar problem. In my case i have to download an archive file(don't matter anything is file zip or tar.gz depends on what esp support). downloading file from server is not issue. how to unzip it? that archive support to have more than 2 files in it.
I'm using esp-idf v4.2.
Hello,

You can use zlib and minzip libraries as per your requirements which can be feasible to do it.

Is there any example for that so i can refer that. i didn't find any of such.

AjitSingh
Posts: 10
Joined: Sat Jun 25, 2022 11:24 am

Re: Need help to compress files into ESP32

Postby AjitSingh » Thu Jul 07, 2022 11:44 am

Ritesh wrote:
Thu Jul 07, 2022 4:40 am
AjitSingh wrote:
Wed Jul 06, 2022 8:37 am
Hie,
I'm also stuck at similar problem. In my case i have to download an archive file(don't matter anything is file zip or tar.gz depends on what esp support). downloading file from server is not issue. how to unzip it? that archive support to have more than 2 files in it.
I'm using esp-idf v4.2.
Hello,

You can use zlib and minzip libraries as per your requirements which can be feasible to do it.
https://github.com/madler/zlib from here i get lib and trying to includes this in my project. I'm not able to compile this stuff.
Is this the one repository which i need to include in my project.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help to compress files into ESP32

Postby Ritesh » Tue Jul 12, 2022 10:34 am

Hello @Ajit,

We have used those libraries before few years ago and also ESP32 IDF was tool much older like 3.0 version. But, You can take reference zlip libraries and can verify with compilation from your end.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: Baidu [Spider] and 323 guests