Hi, I am using HTTP request to hit API, and in the response of it, I get Image (proper image in postman) but using UiPath I am getting a response in string format.
Any idea how can I store that image in image variable taking it from JSON response
If you want the image as a variable you should be able to convert the response string to a byte array and then to an image. There’s a couple of answers here that discuss doing that.
If you want to save the Image as a file then you should be able to check the ‘Download Resource’ box and specify an image filepath.
There is Resource path in Options of HTTP Request activity. Just provide a “imageName.png” over there and Run it. Your image will be saved as in .png format. There is no need store the result in String format.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.