# How do you download blob api response in Ionic Android platform

**URL:** <https://forum.ionicframework.com/t/how-do-you-download-blob-api-response-in-ionic-android-platform/199117>\
**Category:** Ionic Framework\
**Created:** [November 4, 2020, 2:44pm UTC](https://forum.ionicframework.com/t/how-do-you-download-blob-api-response-in-ionic-android-platform/199117 "2020-11-04T14:44:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dos193](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dos193](https://forum.ionicframework.com/u/dos193)\
**Post date:** [November 4, 2020, 2:44pm UTC](https://forum.ionicframework.com/t/how-do-you-download-blob-api-response-in-ionic-android-platform/199117/1 "2020-11-04T14:44:22Z")

</div>

I have an api that return blob file response in my Ionic application and using file-saver.js I am able to download it as pdf when running it on browser, but when I deploy it on android my app wont download the pdf . Is there alternative way to do it? I’m using Ionic 5 with Capacitor .

```auto
const response = await this.interactionService.generatePdf(payload).toPromise();

      FileSaver.saveAs(response, `InteractionMonitoring.pdf`);

```

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [November 4, 2020, 8:54pm UTC](https://forum.ionicframework.com/t/how-do-you-download-blob-api-response-in-ionic-android-platform/199117/2 "2020-11-04T20:54:18Z")

</div>

Super easy with [Angular’s `HttpClient`](https://angular.io/api/common/http/HttpRequest), as you just specify `responseType: "blob"`, but I get the feeling you’re not using Angular, if any framework at all.
