Skip to main content
Rohit Sardeshpande
Lead Analyst | Customer Success
Asked a question 8 months ago

For WA, the images that we accept when shared by end-user and pass to the business backend, can that be accepted in base 64 encoding?

Where am I?

In Haptik you can ask and answer questions and share your experience with others!

Hi @Rohit Sardeshpande14

I believe the ask here is whether the image collected from the user on WhatsApp can be passed to the client's backend in a base 64 format. Technically, this seems doable with the following approach:
1. Collect the image in an entity on the WhatsApp number. We'll get an image url
2. Use python library127 on the code node to convert the image URL into a base64 format
3. Pass the base64 format to the backend by making a POST request

Hope this helps!