I am working on SOAP UI Project, where in after running HTTP request with endpoint, I got xml response which has image and is in coded format. Can you please assist me how i can decode this xml image data and then save this image file. Please find snippet attached;
Example:
<data contentType="image/JPEG" contentLength="1875">/9j/4AAQSkZJRgABAQEASABIAAD...............</data>
This may help:
https://www.codeproject.com/Articles/80289/Saving-Image-Data-in-an-XML-File
Use the dump file property to save the response like below
https://www.soapui.org/getting-started/working-with-soapui/saving-responses.html
Thanks for suggestions!
I tried groovy script posted from link suggested by you. But my data content from HTTP Response is of type image/jpeg and when i ran script, i was able to save data but image is broken and not clearly visible. Is there any other possible solution, if so i will be looking forward and interested to explore on same.
Thanks,
Ashish
If you can use dump file to save the response message then you don't need groovy script. Does the image open correctly if you enter a file path and name in dump file property?
Subject | Author | Latest Post |
---|---|---|