-
Hi, I recently came across HTTP Shortcuts and was really impressed. Since it is possible to upload photos, I wonder if there is a possibility to insert the photo file as base64 somewhere in a JSON payload of an HTTP Post request. So, something like this:
It is possible for example in conjunction with Tasker. Is it possible within HTTP Shortcut directly? Thanks Ron |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot. In the meantime I figured out how to use form-data instead. I wanted to use this for sending an alert and it works quite well. I also shared this on LinkedIn and X in case you want to share or like ;-) X: By the way, for sending images using Tasker you can find more information here: https://www.reddit.com/r/tasker/comments/f3qbvc/how_to_send_images_via_telegram_messenger_or/ |
Beta Was this translation helpful? Give feedback.
Hi,
Currently, this is not possible with the app, due to its limited capabilities of interacting with files. I have a vague vision of one day introducing a feature that allows you to read arbitrary files as part of the Scripting feature, which would enable something like this, but it will be a while before that becomes a reality.
I'm not aware of a way to do this with Tasker. It would need to read the file and send its contents as a variable, ideally already base64-encoded. It could then be received in a variable and used by HTTP Shortcuts. But this would only work with very small files, as it would quickly run into the size limit that Android enforces for inter-app-communication.