Skip to content
Advertisement

Tag: blob

blob URL as audio src

After I get audio file from input, I make it to url using ‘URL.createObjectURL’. And the url looks like ‘blob:http://127.0.0.1:8080/52090eca-64a0-4262-aeda-34f9c62257b1’. However, if I put this url to the src in audio tag, this shows nothing. Answer HTMLAudioElement class contains .play() function to open the sound, you need to call it example:

send blob to python flask and then save it

So I’m trying to make a website that record your voice, the problem is that when I send to a flask server the blob file or the blob url, my flask python code says that is no content while it is, how can I send the blob, so the server can save it as a file. and my python flask

SVG to Image returning blank image blob

I have an interactive drawing app on my website, and I want to create a button where one could share their drawing on FB. I’m trying to convert the SVG element to a blob, to then pass it to og:image, but I’m having some issues with the conversion. I have two trials: one doesn’t trigger the onload function for some

Progress for a fetch blob javascript

I’m trying to do a javascript fetch to grab a video file using fetch. I am able to get the file downloaded and get the blob URL, but I can’t seem to get the progress while its downloading. I tried this: The problem is that I get “Response.blob: Body has already been consumed”. I see that the reader.read() is probably

JS get string from blob

I have a function And I want it to return a string. When I try to use this data blob_hidden_input.value = create_blob(file_object) blob_hidden_value.value is “[Promise object]”. So how to convert promise to string without black magic? Answer Well, you kinda have to do some black magic to make it work. But hey, black magic is fun sometimes. Just pass in

Advertisement