Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

VBCS QR CODE SCAN APP NOT WORKING using TakePhoto & jsQR

edited Aug 26, 2019 8:15PM in Visual Builder 3 comments

Summary

VBCS QR CODE SCAN APP NOT WORKING using TakePhoto & jsQR

Content

Hi All,

I am trying to build a simple mobile app to scan QR code , I have gone through some links & found about Take Photo feature of VBCS & jsQR lib. I tried to use them to build the app but some how not able to scan. Please find below the issue I am facing

1. Firstly TakePhoto returns a blob (https://docs.oracle.com/en/cloud/paas/integration-cloud/visual-developer/takephoto-action.html) , but jsQR  expects a imageData object (refer here -- https://github.com/cozmo/jsQR)  ==> I tried to convert blob to base64 & base64 to imageData object using canvas but below code is returning null

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!