tags:

views:

387

answers:

1

Hi all,

I want to download an epub file in to my app locally by passing the url of the file:

http://www.jedisaber.com/eBooks/books/sample.epub

Clicking this url should download an epub. How can I get it to download to my app?

I tried using NSData but it didn't work. I also tried copying the file to my document directory but it also didn't work. Can anybody tell me how can I do this in Objective-C?

Any help code would be appreciated!

Thanks for any help.

A: 

EPUB is a ZIP format, you can use any Binary Stream Downloading method and save the file first as a binary file on iPhone.

acroCan