Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Trying to download an image with HTTP REQUEST but http_data is coming back with JSON and binary data

46 views
Skip to first unread message

john threat

unread,
Oct 4, 2024, 2:46:12 PM10/4/24
to Tasker

Im trying to download an image from a webserver, the data i get back from HTTP REQUEST GET returns the previous JSON POST as well as binary data that is the PNG image. Is there a way to seperate this using Tasker?

here is the data I get back from the webserver in %http_data https://pastebin.com/DCrr8zqr

this wont write to a valid img file as is, is there a way to pull them a part? When i go the webserver in the browser it does NOT send the JSON from the previous POST just serves the image/PNG file

any ideas how to fix this?

João Dias

unread,
Oct 7, 2024, 5:09:46 AM10/7/24
to tas...@googlegroups.com
Hi. Try to use the option to save to a file in the HTTP Request action instead of checking the %http_data variable. Does that make it work?

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


john threat

unread,
Oct 7, 2024, 12:34:08 PM10/7/24
to tas...@googlegroups.com
Nice this does work! figured it out this weekend.  Save to file resulted in a PNG image. 
Just curious is it a bug that it still had the JSON from a previous query in the %http_data

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/yT_D54tOcw0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CAG6Z%2BFcisaNFsNys3gWP-b2QT0iKtAM%2BPiLkRuxt-i2b6tZfwQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages