Author Topic: Is there any way to access to the photo roll in iOS?  (Read 2310 times)

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Now, I need know how read the camera roll in iOS. I searched into the forum but not found something about this.

Does somebody know any way?

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 552
    • View Profile
http://www.tuaw.com/2009/08/26/delving-into-the-iphones-dcim-folder/

Quote
Inside /var/mobile/Media/DCIM, you typically find an image subfolders. ###APPLE (starting with 100APPLE, and going up from there) folders store pictures snapped by the iPhone camera (IMG_0001.JPG, IMG_0002.JPG, etc). Until the 3.0 firmware, the 999APPLE folder has stored shots of the iPhone screen. With 3.0 and later, those shots appear to be directed into the other APPLE folders and saved with PNG extensions. Thumbnails and other helper files appear in a sub-sub-folder called .MISC.

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Are these folders accessible from GLB?

Can be read without problems?

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 552
    • View Profile
Who knows. Try it.

Code: (glbasic) [Select]

LOCAL files$[],i
SETCURRENTDIR("/var/mobile/Media/DCIM")
GETFILELIST("*", files$[])

FOR i=0 TO LEN(files$[])-1
   DEBUG files$[i]+"\n"
NEXT


Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
The problem is that my iPhone/iPad are jailbroken and It may not be reliable

Offline DaCarSoft

  • Community Developer
  • Mr. Polyvector
  • ******
  • Posts: 182
    • View Profile
I think the only way in a non jailbroken device is to create a wrapper...

That shouldn't be very difficult...   I think I have seen something unfinished here, in the forums...   May be???   :P

If I have time, I will give it a try and tell here what happens.
"Si quieres resultados distintos... no hagas siempre lo mismo" - Albert Einstein.

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
That would be great for me, you save my life (metaphorically speaking) ;)

Thank you.

PD: When you have time and desire.