Questions tagged [filesaver.js]

FileSaver.js implements the HTML5 W3C saveAs() FileSaver interface in browsers that do not natively support it

FileSaver.js is the solution to saving files on the client-side, and is perfect for web applications that need to generate files, or for saving sensitive information that shouldn't be sent to an external server.

316 questions
0
votes
1 answer

FileSaver.js submit

My final goal is to make a form that creates csv files. I'm trying to figure out how filesaver.js works . I tried the code below but can't get it working. Any ideas?
0
votes
1 answer

File saved locally with FileSaver not opening.

I'm trying to save a file using FileSaver and "technically" it is working, I say "technically" because the file won't open. To test it I created a brand new file, uploaded and tried to download, still when I try to open the downloaded file I get: I…
eestein
  • 4,914
  • 8
  • 54
  • 93
0
votes
1 answer

Getting corrupted word document when using FileSaver and Blob in angularjs

I am using angular-file saver service https://github.com/alferov/angular-file-saver for downloading files. Download is good but when try to open word document I am getting file is corrupted and word cannot open it and if put my api directly in…
Micko
  • 431
  • 8
  • 27
0
votes
0 answers

how can i add filesaver.js to gulp

I am trying to manage my app which is a spa angular using gulp. Now i have a problem with FileSaver . My app requires me to download some files. I use the following code for the same $window.saveAs(response.response,downloadFile); When I check the…
0
votes
1 answer

angular-file-saver download base64 file using FileSaver

I'm trying to download a file that is base64 using angular-file-saver. I can do this without angular-file-saver with just this html mark-up: Download…
Harbinger
  • 594
  • 1
  • 8
  • 18
0
votes
1 answer

Save web page as Html error

I am using this https://github.com/eligrey/FileSaver.js to save web page as html. Following code executes when user clicks download- var originalstr=$.ajax( { type: "GET", url:"url", async: false }).responseText ; var str =…
SkyTreasure
  • 854
  • 2
  • 13
  • 23
0
votes
0 answers

Save json array in Excel Angularjs

How to save Json array returned from backend into an Excel file in Angularjs? This is the query connecting to backend. It is supposed to return an Excel file, but somehow it returns a Json array. curl -o orders.xlsx --header "Authorization: xxxxxxx"…
Luong Ba Linh
  • 802
  • 5
  • 20
0
votes
1 answer

FileSaver does nothing

What is wrong with the following code that it does not download/save? https://jsfiddle.net/36nuqrqm/ function save_file() { var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"}); saveAs(blob, "hello…
barej
  • 1,330
  • 3
  • 25
  • 56
0
votes
0 answers

AngularJs, FileSaver Export To Excel with Turkish Chars?

I can export to Excel with FileSaver in my solution. Here my sources: tapuController.cs: [Route("Tapu/tcKimlikNoIleToEcel")] public void tcKimlikNoIleToEcel(string tcKimlikNo) { List zeminler = new…
CoderWho
  • 210
  • 1
  • 5
  • 20
0
votes
1 answer

image slicing, only saves (via Filesaver.js) last slice in sequence

Hi I'm writing a function to break up a large image into individual smaller tiles, and save the tiles locally via Filesaver.js. However, for some reason, the for-loop keeps writing only the last tile in. For example, if I have a image and break it…
PwC
  • 183
  • 3
  • 10
-1
votes
1 answer

Convert blob object into base64 javascript

I am trying to convert blob object into base64 var out = doc.getZip().generate({ type: "blob", mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", }) //Output the document using Data-URI In the below console. I am…
nawaz uddin
  • 345
  • 2
  • 14
-1
votes
1 answer

Download Word .docx as Blob file from Angular on mobile devices

I am trying to download .docx file from REST API (.NET Core FileContentResult) in Angular application. Everything is working fine on PC, but there is problem with downloading .docx files in VMware Workspace ONE Web browser (didn't try standard…
Viktor 36
  • 39
  • 8
-1
votes
2 answers

ArrayList with formatting

Struggling with my ArrayList code. I needed to generate 20 random numbers between 1 and 200. It works but when I show all in array list it, it all comes out horizontal (ie: [190.9873874849,3.45694033,67.900034...] and SUPER long. It needs to have…
Ling17
  • 11
  • 4
-2
votes
2 answers

Saving HTML data from URL

I need to show an external HTML5 content on my web page (using Angular 6). I can't use iFrame tag because the server allows only "same origin". I've tried to use FileSaver.js, but how can I save the HTML content and then show it on my website?
BoazGarty
  • 1,410
  • 4
  • 18
  • 38
-2
votes
1 answer

Convert space separated value text to .csv with c++ then save it

How to convert .asc file (space separated value) into .csv file with c++ then save it as .csv file on pc or android. Note: this .asc file is for srtm data, so it is large, is 3600 rows and 3600 columns. Please without software like excel or such. I…
user9322960
  • 135
  • 8
1 2 3
21
22