Search code examples
iphoneobjective-cios5mp3

How to find size of a MP3 file in iPhone programmatically


Possible Duplicate:
How to get the file size given a path?

I am trying to find the size of a MP3 file on iPhone programmatically. (THIS FILE IS LOADED FROM ITUNES TO IPHONE AND THIS FILE IS NOT WITHIN APP DIRECTORY)

Unfortunately, I haven't been able to successfully to do that.

What classes or APIs should I use, please let me know.


Solution

  • If the file is not within directory, app directory, yo do not have access to file, therefore are unable to perform any operation to calculate the size. This is due to iOS sandbox behavior.