GLBasic forum

Main forum => GLBasic - en => Topic started by: msx on 2013-Nov-07

Title: Is there any way to access to the photo roll in iOS?
Post by: msx on 2013-Nov-07
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?
Title: Re: Is there any way to access to the photo roll in iOS?
Post by: r0ber7 on 2013-Nov-07
http://www.tuaw.com/2009/08/26/delving-into-the-iphones-dcim-folder/

QuoteInside /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.
Title: Re: Is there any way to access to the photo roll in iOS?
Post by: msx on 2013-Nov-07
Are these folders accessible from GLB?

Can be read without problems?
Title: Re: Is there any way to access to the photo roll in iOS?
Post by: r0ber7 on 2013-Nov-09
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

Title: Is there any way to access to the photo roll in iOS?
Post by: msx on 2013-Nov-09
The problem is that my iPhone/iPad are jailbroken and It may not be reliable
Title: Re: Is there any way to access to the photo roll in iOS?
Post by: DaCarSoft on 2013-Nov-10
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.
Title: Is there any way to access to the photo roll in iOS?
Post by: msx on 2013-Nov-10
That would be great for me, you save my life (metaphorically speaking) ;)

Thank you.

PD: When you have time and desire.