How do you set the name of a blob file in JavaScript when force downloading it through window.location?  function newFile(data) {     var json = JSON.stringify(data);     var blob = new Blob([json], {type: "octet/stream"});     var url  = w...
In my Vue app I receive a PDF as a blob, and want to display it using the browser's PDF viewer.  I convert it to a file, and generate an object url:  const blobFile = new File([blob], `my-file-name.pdf`, { type: 'application/pdf' }) thi...
Is there a function for appending blob data in JavaScript I currently use the following approach:   var bb = new Blob(["Hello world, 2"], { type: "text/plain" }); bb = new Blob([bb, ",another data"], { type: "text/plain...
I would like to display a video from a Javascript Blob/File object in the HTML5 video tag.  This code only works for small videos :   var reader = new FileReader(); reader.onload = function(e) {     document.getElementById("video").src=reader...
I have a problem with BlobBuilder (Chrome11) I try to obtain an image from server with XHR request. Then i try to save it to local FS with BlobBuilder / FileWriter. Every example on the internet is about working with text/plain mime type and these ex...
I'm trying to write a fail-safe program that uses the canvas to draw very large images (60 MB is probably the upper range, while 10 MB is the lower range). I have discovered long ago that calling the canvas's synchronous function toDataURL us...
I am getting multiple Base64 URIs of JPG images.  I need to save them as jpg files.  I'm trying to use FileSaver.js, but its not working for me.  I have used filesaver.js before, when I was getting images from aws-sdk, in which, the data was in b...
I'am using D3 to generate a graph and want to export this to an image, which works fine in all browsers except Safari. The code generates a D3 SVG, which is used in a BLOB, which is used as an image, which is added to a canvas which can be export...
I need to execute functions in "parallel" and I use parallel.js:  var p = new Parallel(items);  var fn1 = function (item) {     doSomething(item); };  p.map(fn1).then(function () {     otherFunction(); });   But IE shows the following error:...
I am trying to upload local mp4/move file with XMLHttpRequest() on a server. This is written with react-native and in final version user would be able to upload any big files from his/her IOS/Android device to server.  The file is about 1 GB (it coul...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.