Tar Module - Extract tar files with Corona

Hi,

I’m playing with this tar module (Thanks a lot Danny, ezraanderson1979, mimetic… Great job!!)
I download a .tar from server to the DocumentsDirectory and then try to untar the file.
In the mac simulator everything is ok but when I test in Android or iPad, the app crashes when untar is running.
If I try with .tar files about 10Mb (for example), works fine also in Android and iPad devices, but when I try with files about 500Mb (for example), the app crashes untaring.

Could anybody tell me if is there any limit for the tar file size?

TIA

Alberto. [import]uid: 44013 topic_id: 23242 reply_id: 142621[/import]

This looks pretty handy! It would be perfect if we actually had a way to create .tar files from within the app as well.

Does anyone know if thats possible at all? I had a brief look but .tar files really aren’t my forte. [import]uid: 69826 topic_id: 23242 reply_id: 142745[/import]

Hi,

I’m playing with this tar module (Thanks a lot Danny, ezraanderson1979, mimetic… Great job!!)
I download a .tar from server to the DocumentsDirectory and then try to untar the file.
In the mac simulator everything is ok but when I test in Android or iPad, the app crashes when untar is running.
If I try with .tar files about 10Mb (for example), works fine also in Android and iPad devices, but when I try with files about 500Mb (for example), the app crashes untaring.

Could anybody tell me if is there any limit for the tar file size?

TIA

Alberto. [import]uid: 44013 topic_id: 23242 reply_id: 142621[/import]

This looks pretty handy! It would be perfect if we actually had a way to create .tar files from within the app as well.

Does anyone know if thats possible at all? I had a brief look but .tar files really aren’t my forte. [import]uid: 69826 topic_id: 23242 reply_id: 142745[/import]

This looks pretty handy! It would be perfect if we actually had a way to create .tar files from within the app as well.

Does anyone know if thats possible at all? I had a brief look but .tar files really aren’t my forte. [import]uid: 69826 topic_id: 23242 reply_id: 142745[/import]

This looks pretty handy! It would be perfect if we actually had a way to create .tar files from within the app as well.

Does anyone know if thats possible at all? I had a brief look but .tar files really aren’t my forte. [import]uid: 69826 topic_id: 23242 reply_id: 142745[/import]

Hello everyone,

I’m also a little bit worried about the APK size. I checked the roadmap but I can’t see anything about that. Is it already implemented ?
Or I have to use the tar module extraction ?

Thanks. [import]uid: 231311 topic_id: 23242 reply_id: 145730[/import]

Hello everyone,

I’m also a little bit worried about the APK size. I checked the roadmap but I can’t see anything about that. Is it already implemented ?
Or I have to use the tar module extraction ?

Thanks. [import]uid: 231311 topic_id: 23242 reply_id: 145730[/import]

Hello everyone,

when I use IZArc (windows), I get the following error:

Runtime error
    …d4lg4lsxvm72xc7vm0000gp/T/TemporaryItems/193/tar.lua:147: attempt to index local ‘file_handle’ (a nil value )

With BetterZip it works.

Thank you for your help :slight_smile:

Hello everyone,

when I use IZArc (windows), I get the following error:

Runtime error
    …d4lg4lsxvm72xc7vm0000gp/T/TemporaryItems/193/tar.lua:147: attempt to index local ‘file_handle’ (a nil value )

With BetterZip it works.

Thank you for your help :slight_smile:

Hi guys.

Does anyone have an idea how to compress multiple images within the app to send to a server? In my case, my app should compress some images for then send to the server.

Hi guys.

Does anyone have an idea how to compress multiple images within the app to send to a server? In my case, my app should compress some images for then send to the server.

Hi,

I have created tar file using following command:- 

tar cvf story4read.tar story4read/

this command generated a tar file, When I try to untar the tar file, I am getting this Error 

tar.lua:139: attempt to index local ‘file_handle’ (a nil value)

stack traceback:

…ctionsRR/coronaPractice/TarfileExtractSample/tar.lua:139: in function ‘untar’

…tionsRR/coronaPractice/TarfileExtractSample/main.lua:69: in function ‘unTarAllFiles’

But when I create tar file with BetterZip , it is working properly.

So, Please let me know that, how can we create uncompressed tar file without “BetterZip”. (or I have to buy BetterZip as its trial version already over). 

Note:- same problem posted on http://forums.coronalabs.com/topic/28888-best-way-to-download-new-content/ too

 

 

 

Edit:- After above commands, I made tar file from inside the directory

 

ttmacmini001:story4read abhishekkumar.jain$ tar cvf TAR.tar *.*

 

I used this command too 

ttmacmini001:story4read abhishekkumar.jain$ tar -cvf TAR.tar *.*

 

After that also, I’m facing problem but Error type is changed ,now I am getting following Error :- 

 

2014-05-01 11:57:09.255 Corona Simulator[521:707] Invalid header magic 

2014-05-01 11:57:09.255 Corona Simulator[521:707] Runtime error

…ctionsRR/coronaPractice/TarfileExtractSample/tar.lua:120: attempt to index local ‘header’ (a boolean value)

stack traceback:

Hi,

I have created tar file using following command:- 

tar cvf story4read.tar story4read/

this command generated a tar file, When I try to untar the tar file, I am getting this Error 

tar.lua:139: attempt to index local ‘file_handle’ (a nil value)

stack traceback:

…ctionsRR/coronaPractice/TarfileExtractSample/tar.lua:139: in function ‘untar’

…tionsRR/coronaPractice/TarfileExtractSample/main.lua:69: in function ‘unTarAllFiles’

But when I create tar file with BetterZip , it is working properly.

So, Please let me know that, how can we create uncompressed tar file without “BetterZip”. (or I have to buy BetterZip as its trial version already over). 

Note:- same problem posted on http://forums.coronalabs.com/topic/28888-best-way-to-download-new-content/ too

 

 

 

Edit:- After above commands, I made tar file from inside the directory

 

ttmacmini001:story4read abhishekkumar.jain$ tar cvf TAR.tar *.*

 

I used this command too 

ttmacmini001:story4read abhishekkumar.jain$ tar -cvf TAR.tar *.*

 

After that also, I’m facing problem but Error type is changed ,now I am getting following Error :- 

 

2014-05-01 11:57:09.255 Corona Simulator[521:707] Invalid header magic 

2014-05-01 11:57:09.255 Corona Simulator[521:707] Runtime error

…ctionsRR/coronaPractice/TarfileExtractSample/tar.lua:120: attempt to index local ‘header’ (a boolean value)

stack traceback: