25pdf 1 4 is response

Solutions on MaxInterview for 25pdf 1 4 is response by the best coders in the world

showing results for - " 25pdf 1 4 is response"
Gene
09 Aug 2017
1axios.post('http://www.example.com/generatePDF.php',
2  {...params},
3  {responseType: 'blob',  // VERY IMPORTANT
4  headers: {'Accept': 'application/pdf'}})
5.then((response) => {
6  const blob = new Blob([response.data])
7  const url = window.URL.createObjectURL(blob)
8  this.setState({fileUrl: url, loading: false})
9})