I try to upload an image to the Firebase storage from an URL (with ref().put(file))(www.example.com/img.jpg). To do so i need a File or Blob, but whenever I try new File(url) it says “not enough arguments“… EDIT: And I actually want to upload a whole directory of files, that’s why i can’t upload them via Console Answer Try using the fetch
Tag: blob
Open blob objectURL in Chrome
I want to open a PDF in a new tab in chrome browser (Chrome 56.0.2924.87, Ubuntu 14.04) using window.open(fileObjectURL) in javascript. I am creating the blob from base64 encoded data and do create an objectURL like this: It works fine in latest Firefox browser. But in Chrome I can see that the new tab gets opened but then closed immediately.
Cordova SQLite save BLOB
I have a problem with Cordova SQLite plugin. How can I save BLOB image to SQLite? I have BLOB object in JS: And I trying to save it And when i trying to get this image: I get this string: How can i convert it to BLOB again? Also i trying to save images in base64, but i can’t save
How to convert Blob to File in JavaScript
I need to upload an image to NodeJS server to some directory. I am using connect-busboy node module for that. I had the dataURL of the image that I converted to blob using the following code: I need a way to convert the blob to a file to upload the image. Could somebody help me with it? Answer This function
How to read BLOB data from a WebSocket which is not an image
I created a WebSocket connection to my webserver to receive some data. However, when I log the event that I receive in the onmessage function, then I cannot see the real content of the data. When I copy the network connection that my Chrome browser v32 opens as a curl command and run it on my OS console, then everything