Hi there,
I’m currently facing an issue while handling images received from the WhatsApp Business API in Pipedream. When I receive an image message, WhatsApp indicates that the MIME type is “image/jpeg”. However, when I try to access this image in Pipedream, I’m encountering errors.
Here’s a brief overview of the problem:
- WhatsApp indicates that the MIME type of the received image is “image/jpeg”.
- Upon receiving the image in Pipedream, I’m getting binary data in the
return_value
. - I’ve tried saving this binary data to the
/tmp
folder, but when I upload the image to S3 and attempt to download it, the image does not open. It seems to be corrupted or improperly encoded.
I’ve tried a few different approaches, including converting the binary data to base64 before saving it, but the issue persists.
Could you please provide guidance on how to properly handle images received from the WhatsApp Business API in Pipedream? Specifically, I’m looking for assistance with:
- Correctly interpreting and handling the binary data received from WhatsApp.
- Ensuring that the image data is properly encoded and saved so that it can be successfully uploaded to S3 and downloaded without any issues.
Any insights or suggestions you could provide to help resolve this issue would be greatly appreciated.
Thank you very much for your assistance!