We are unable to get the base64 data from the captured image using kony camera widget

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.

Hi,

When we click on camera, onCapture event is getting called with camera event object but when we tried to read base 64 data from camera object is giving null.

We tried to assign it to image widget and read base64 from image, still it is giving as null

Using kony 7.3 plugins, Freeform application.

Please help.

Hi @Chwistivn Ruthewfowd​

In onCapture Event , paste the following code. ( Just change imgWidget with your Image widget id and cameraWidget with your camera widget id, same follows for Form)

Form1.imgWidget.rawBytes =Form1.cameraWidget.rawBytes;

Thanks,

Hi @Chwistivn Ruthewfowd​ ,

Most probable reason could be that eventobject is not passed callback function. Please refer attached screenshot.

Thank you,

Hi @Chwistivn Ruthewfowd​ ,

Please let us know if the issue got resolved and if not please send us a sample so that we can take a look at it and will help you.

Thanks,