How to receive blob responses using Angular's 2+ @angular/http module?

This page summarizes the projects mentioned and recommended in the original post on /r/codehunter

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • RxJS-DOM

    Discontinued HTML DOM Bindings for the Reactive Extensions for JavaScript

  • not sure if this applies, but the rxjs responseType parameter seemsto include only text and json:https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/doc/operators/ajax.md

  • FileSaver.js

    An HTML5 saveAs() FileSaver implementation

  • var headers = new Headers(); headers.append('Content-Type', 'application/x-www-form-urlencoded'); this.http.post('http://localhost/a2/pdf.php', reportPost, { headers: headers }) .retry(3) // .map( (res:any) => res.blob() ) // errors out .subscribe( (dataReceived:any) => { var blob = new Blob([dataReceived._body], {type: 'application/pdf'}); saveAs(blob, "Report.pdf"); }, (err:any) => this.logError(err), () => console.log('Complete') ); ps. the saveAs function comes from here: https://github.com/eligrey/FileSaver.js

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • 2markdown – Transform Websites into Markdown

    2 projects | news.ycombinator.com | 1 May 2024
  • Access Google Cloud Secret Manager via Google Apps Script

    2 projects | dev.to | 1 May 2024
  • "Kawaii" tech logos by Sawaratsuki

    3 projects | news.ycombinator.com | 27 Apr 2024
  • The AWS S3 Denial of Wallet Amplification Attack

    1 project | news.ycombinator.com | 1 May 2024
  • How to Create Simple Sketching Art with p5.js: A Step-by-Step Tutorial

    1 project | dev.to | 1 May 2024