iOS Question [SOLVED] Can not save iPhone photo library objects to file

JackKirk

Well-Known Member
Licensed User
Longtime User
I have been mucking around with the iPhone photo library:

https://www.b4x.com/android/forum/t...s-wrapper-for-photo-library-management.82938/

In that effort you can generate album and photo "handles" that are returned from the Objective C as B4i objects.

You can then plug these objects back into other Objective C calls, as is, to do things like retrieve thumbs, bitmaps etc from the iPhone photo library.

I would like to be able to save these objects to file but cannot find a way to do it.

Using iRandomAccessFile and either WriteB4XObject or B4XSerializor I generate the same error:

Cannot serialize: ALAsset - Type:photo, URLs:assets-library://asset/asset.JPG?id=72D30064-1A13-4F73-971F-60567E6209A7&ext=JPG

Where ALAsset - Type:photo,... is the string representation of the object.

Can anyone suggest a way to do this?
 

JackKirk

Well-Known Member
Licensed User
Longtime User
How do I convert it to an array of bytes?
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
No, it is some weird key - my description of 'handle' is appropriately vague - if you look at the code pointed to in first post above you will see what I mean.
Sorry for the brevity here - in middle of major Internet outage - doing this on my Samsung which is still up.
 
Upvote 0
Top