What is the path of photos album on iPhone device?

10,565

Solution 1

You can't access assets on the file system directly (assuming this isn't a jailbreak question). In addition to UIImageWriteToSavedPhotosAlbum, the Assets Library Framework provides access to the photo library if you're targeting newer versions of iOS.

Solution 2

Root/private/var/mobile/Media/DCMI/100APPLE

Share:
10,565
tiw
Author by

tiw

<3 2 learn

Updated on June 15, 2022

Comments

  • tiw
    tiw almost 2 years

    I was trying to save a PNG file to photos albums folder on the iPhone device with a .png extension so that the transparency remains..

    My question is: What is the path of photos album UIImageWriteToSavedPhotosAlbum function is using? I am using data write to file method..

    Thanks

  • tiw
    tiw over 12 years
    would using that framework help me save a file in png format to the albums folder in the photo library?
  • Tommy
    Tommy over 12 years
    @tiw: check out UIImageWriteToSavedPhotosAlbum — developer.apple.com/library/ios/documentation/uikit/referenc‌​e/…
  • smparkes
    smparkes over 12 years
    I think so. I don't believe there's a "copy file to asset" function but if you read the png into an NSData you can then use writeImageDataToSavedPhotosAlbum:metadata:completionBlock.
  • Sankalp
    Sankalp over 5 years
    What is "Root"?
  • Naloiko Eugene
    Naloiko Eugene over 5 years
    Yes, an old reply :) It was a jailbroken iPhone 3GS it seems