PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 25 → Saving a decoded image using HAdd is crashing the iOS app
Saving a decoded image using HAdd is crashing the iOS app
Iniciado por Andy, out., 02 2020 6:00 PM - 1 resposta
Publicado em outubro, 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
Membro registado
1 mensagem
Publicado em outubro, 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.