Linked Questions

13 votes
1 answer
21k views

I'm getting some odd results when trying to open a new window with a blob url in Windows Edge (20.10240.16384, which is the version in the IE11 VM supplied by Microsoft). var xhr = new XMLHttpRequest(...
Technicolour's user avatar
7 votes
1 answer
7k views

This app is used to collect information from a DB and make a .pdf file from it. this.reportsService.getTelerikReport({ reportId: this.selectReportId, startDate: this.startDate, endDate: this.endDate, ...
Stefan's user avatar
  • 157
506 votes
26 answers
1.1m views

I have a Struts2 action in the server side for file downloading. <action name="download" class="com.xxx.DownAction"> <result name="success" type="stream"> <param name="...
hguser's user avatar
  • 36.2k
74 votes
11 answers
321k views

I have been working on this problem for the last few days. With no luck on trying to display the stream on <embed src> tag, I just tried to display it on a new window. The new window shows PDF ...
Simo Mafuxwana's user avatar
22 votes
6 answers
105k views

I tried opening a PDF file using the window.open(), but the window opens and closes automatically and the file is downloaded like any other file. How to make the pdf file open in new tab? There are no ...
Harish Krishnan's user avatar
23 votes
4 answers
48k views

I have an angular2 project with an ASP.Net Web API. I have code to retrieve a file path from my database which goes to a document on my server. I then want to display this document in the browser in a ...
DaRoGa's user avatar
  • 2,414
27 votes
1 answer
67k views

I use this code to download excel file from server. $.ajax({ headers: CLIENT.authorize(), url: '/server/url', type: 'POST', contentType: "application/json; charset=utf-8", data: ...
SMGhost's user avatar
  • 4,067
12 votes
3 answers
47k views

I have URL of pdf file for exa url is "test.example.com/incoice/1/download?auth_token="some_token", when I visit this url, url will show me PDF in browser. Now I want to open this pdf with print ...
Vishal's user avatar
  • 7,371
7 votes
3 answers
32k views

i need to find alternative to "msSaveOrOpenBlob ", that work on IE, for Firefox and Chrome. On Chrome in particular that not work and don't show the dialog box to chose if save or open file. ...
Giovanni D'Amico's user avatar
15 votes
1 answer
9k views

I have the code below in my typescript to call a web api method and retrieve a binary byte array (blob) that is a PDF. My user requirement is to open PDF in a new window. $scope.selectRow = (...
SpaceCowboy74's user avatar
2 votes
2 answers
13k views

below is C# WEB API Code to generate Excel : public class FileExportController : ApiController { [HttpGet] public HttpResponseMessage Get() { var callerContext = CallerContext....
suresh's user avatar
  • 43
0 votes
0 answers
4k views

In my backend API, i am streaming a pdf in application/octet-stream format. In front end, for any browser i just create a blob, and open it after: var request = new XMLHttpRequest(); request.open("...
user avatar
3 votes
1 answer
2k views

I'm trying to support downloading a file from an API in Edge on iOS. The file is downloaded as a blob, and we already have solutions in place for downloading on Safari and Chrome (Using ...
BenDTU's user avatar
  • 51
0 votes
1 answer
4k views

I currently take a base 64 encoded string that represents a PDF file and convert it to a blob in AngularJS using the following code (simplified): var base64PdfToBlob = function(b64Data: string, ...
Mike's user avatar
  • 235
8 votes
2 answers
1k views

So I have spent weeks researching how to get a pdf from the server via ajax and then show it to the client. The reason I need to do this is a user can't just go to the pdf directly on the server, ...
Ian Overton's user avatar
  • 1,050

15 30 50 per page