How to add image as attachment to email using kony.phone.openEmail API

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I have an image created using kony.image.createImageFromSnapShot.

I assigned it to an image widget.

I have converted the image into raw bytes.

I tried adding it as attachment in email to be sent using kony.phone.openEmail API

I am encountering a toast error saying "Can't attach file"

See toast in image below

Please go through the information post where you will find sample app and doc link.

https://basecamp.kony.com/s/question/0D56A00000Es4EcSAJ/?t=1517919778192