# Unable to download pdf from blob url

**URL:** <https://forum.katalon.com/t/unable-to-download-pdf-from-blob-url/122243>\
**Category:** Miscellaneous\
**Created:** [March 1, 2024, 10:40pm UTC](https://forum.katalon.com/t/unable-to-download-pdf-from-blob-url/122243 "2024-03-01T22:40:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [March 4, 2024, 11:35pm UTC](https://forum.katalon.com/t/unable-to-download-pdf-from-blob-url/122243/3 "2024-03-04T23:35:40Z")

</div>

> [@Elly\_Tran](#):
>
> I found this similar discussion: [Read PDF having URL starting with blob - #13 by kazurayam](http://forum.katalon.com/t/read-pdf-having-url-starting-with-blob/24095/13).

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:

```auto
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:

```auto
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](http://forum.katalon.com/t/download-the-image-file-via-rest-api/120898/3) for a sample code.

---

_[View the full topic](https://forum.katalon.com/t/unable-to-download-pdf-from-blob-url/122243)._
