Is it possible to download a file (i.e. an sqlite database file) from the Internet into your iPhone application programmatically for later use within the application?
<
What is fileData? How is it defined and initialized?
fileData = [NSMutableData data];
should be somewhere after:
NSURLConnection *conn = [NSURLConnection connectionWithRequest:req delegate:self];
You have to initialize fileData and retain it per memory management rules.
Try it with my answer. It Works!