views:

6943

answers:

2

Hi everyone, I created little download application with music player and now I want it to unpack archives, because quite often mp3s are packed in archive and you can play them before you unpack the archive. I found solution for .zip files on iPhone here on stackoverflow, but I'm wondering if there's a way to unpack .rar files, or other than .zip formats.. Many times, I red about creating own utility to do this, but I don't know whether I am able to create it or not. Could you please tell me if there's any solution for unpacking .rar(or simply other than .zip) archives on iPhone? Thanks

+1  A: 

UnRar has source code included, so if all fails, you could have a look if there is a port for the iPhone or try to do this yourself. For Symbian Phones, there seems to be FreeUnRar.

schnaader
iphone ported unrar is avilable on http://wdtz.org/iphone/unrar/
joe
A: 

Thank you both guys, So there is not any way to do it programatically without making own unrar tool am I right? and making own unrar tool is quite difficult isn't it? I had two ideas but it is bullshit i think :) First is, that I could use code from Unrar that Schnaader refered me to, but I don't have any experience with data compression so if you could gimme some direction then do it please... but i am very pessimistic about doing my own archive unpacker :) I think this is very advanced topic :) or not? :) My second idea was, that i could use Unrar for iPhone(from Krish's reference) and use it in code, because I wondered about doing this unpacking directly from my application... but this is not possible, right?

Jenicek
still u can add Unrar source into ur application and port it for your application
joe
ok thanks I'll try :)
Jenicek