PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → Saving a decoded image using HAdd is crashing the iOS app
Saving a decoded image using HAdd is crashing the iOS app
Started by Andy, Oct., 02 2020 6:00 PM - 1 reply
Posted on October, 02 2020 - 6:00 PM
Hi,

I am sending an image over Http Request and on the iOS (Windev Mobile) I receive the image using

WorkAttachments_Local.FileContents = Decode(vAttachment.FileContents..Value,encodeBASE64)

Here FileContents is of Type Binary, Sound column in HFSQL table

On doing HAdd(WorkAttachments_Local,hSetIdAuto) it fails and crashes the app for certain images.

Thanks,

Andy
Registered member
2 messages
Posted on October, 03 2020 - 6:33 AM
Add NSPhotoLibraryUsageDescription to Info.plist :-( Don't leave it empty - it reuses Apple's default question, but it is fine only for development. Uploading such archive to App Store will trigger an error.