{ return new Blob ( [res.blob, Teams. In this JavaScript quick tutorial, we'll learn how to select a file using a File input control to convert it into a Base64 URL, also add a View button to preview the selected file by opening in the new Chrome tab by creating a BLOB url. Youre now watching this thread and will receive emails when theres activity. All contents are copyright of their authors. Setting it to the value of "_blank" will open the link in a new tab. Here is an example: < We will be happy to assist you further. Code to open the file in new, Opening PDF file in new tab angular 4? I was facing some problems finding a way to open a blob from an Aura (Lightning component) in a new tab of the browser, the window.close() function doesn't work because open with base URL of the Any help would be appreciated. open pdf file in new tab/window or user can save/open it. Jan 29 2020 3:13 AM. Assuming the user clicks on the anchor text of course. This is how I have managed, in my case I load the file from URL as arraybuffer. All rights reserved. A complete working sample can be downloaded from PdfSample_AjaxCall.zip. In the HTML forms, where we have . Difference between CORBA and DCOM. I'm getting data from server side (it can be bytes array or base64 string. Code Readability if you cannot open the source code of your framework and understand how it works, sooner or later you are going to be in trouble. "