Unable to download pdf from blob url

I don’t think @renuka.srivastav need to dig into my previous post about "data:" URL. No need to work on java.net.URL class for "blob:" URL.


@renuka.srivastav has a string somewhere in the target web page something like:

blob:https://uncd215.duckcreekondemand.com/7c3bc4d2-74a4-4289-a645-6241c622f200

Then her/his test script should be able to extract the string to save it into a Groovy variable. The script wants to strip the prefix “blob:” off. Then it will get a string as https URL:

https://uncd215.duckcreekondemand.com/7c3bc4d2-74a4-4289-a645-6241c622f200

With this https: URL, the test script should be able to get access to the resource easily.

I would recommend Apache HttpClient API to download and save a binary file like PDF and PNG. Katalon’s built-in keywords WS.* can not save binary files properly. See Download the image file via Rest API - #3 by kazurayam for a sample code.