PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → 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
Débuté par Andy, 02 oct. 2020 18:00 - 1 réponse
Posté le 02 octobre 2020 - 18:00
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
Membre enregistré
2 messages
Posté le 03 octobre 2020 - 06:33
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.