I want to programattically pull a movie file down into a NSData object and write it to iPhone disk in the movies directory so that the user can open up their iPhone iPod section and watch the movies from there... Is that possible?
Or do I need within my app to create a 'viewing' area, download the files to NSHomeDirectory add a folder in Documents and store the data there?
Thanks for any answers...
Assuming an iPhone Store application, this is not do-able, as the Movie directory is not accessible to the sandboxed application.
Of course, you're free to download the movie to a location accessible to your application, and playing the movie inside your application.
Related
i am working on a iPad photo app, where i have to download 100s of images from web and have to store in app locally so that i can access it even if there are no internet connection. So for now i have store it to App's document directory . Is it be ok to store 100s of images in App's Document directory or is there any other way to store it. Please have a reply on it.
Yes you can store it in Document directory.
And also consider its size, if these are big files you can go for zip and save.
i can be able to fetch the ipod library and also able to play that file on one page but can not be able to store the path of selected song and play it to another page. so can any one tell me how can i copy the selected song to document directory of my application and can use it to another location
thanks
if you have the song in your ipod and want to extract the music out, you'll need some special software to do this.
try http://www.itransferstudio.com/ it's a free download
I'm creating a catalog/collection ios4 application. One element of the app lets the user take a picture which they use for a new item entry. The image they choose is then saved to their app's local Document folder.
I was wondering if it's possible to give the user the ability to import the photos to their desktop when they plug in their ios device. Like how iPhoto lets you import photos from your camera roll when you plug in your device
I've looked around, and all i can seem to find are posts on saving to the documents folder, and then retrieving the data within the app.
Any help would be great.
Thanks Ian
You could use an intermediate web service to transfer the files. Upload them to your service from the device, download them to the desktop.
Apple locks this stuff down pretty tight, so that might be your best bet.
I have an audio file that I saved from stream into ~/Documents folder on iPhone.
I just wanted to make this file visible to user as (s)he can play it using iPod program or put that file into his/her song's album!
Unfortunately, this is not possible. Access to the iPod library is read-only at the moment.
I have problem to browse different types of file.
I know browse music file and Photo from iPhone but i want to browse all typs of file doc,zip,ppt,xls,pdf files within a application. like music and photo library.
Is there any way to browse all types of files?
Thanks you,
You can use NSFileManager to browse the files in your application's little sandbox, but you're gonna have to work out a way to get the files there first (download or whatever), provided you don't include them with the application. If you want to interact with the files then you're in another ball game.
What do you mean browse "all types of files"? Files on the device itself? If so, you can only access files within your application's sandbox. You can get a list of a directory using NSFileManager and then render the results into a UITableView.