Questions tagged [createobjecturl]

49 questions
2
votes
0 answers

Video Streaming: Using Blob URL, -Video Seek casting 404 file not found

I am a developer/creator of a Video Streaming Service, in order to server the movies I am using createObjectURL() (BLOB URL). The Blob Url is created and served to the html5 video element after the video is rendered the blob URL is revoked…
1
vote
0 answers

Upload link render blank result - React & Flask send_file

I'm trying to download a file uploaded on S3. The file is well saved but impossible to download it. My result is a blank new tab. Any idea where the issue come ? Here is the back end code : try: response = s3.get_object( …
bmagnette
  • 70
  • 2
  • 10
1
vote
0 answers

React: URL.revokeObjectURL() does not clear data when file changed

I create a image preview in React. The preview image change every time input change: const [src, setSrc] = useState('') const [file, setFile] = useState() useEffect(() => { setSrc(URL.createObjectURL(file)) return () => { src &&…
kan
  • 73
  • 6
1
vote
0 answers

How can I send a list of videos from Node.js to React.js?

In my Node backend, I have an endpoint where I get a few videos from where I have them stored in Google Cloud, then return these videos as the response. Here is my code for that: app.get("/getGalleryVideos", async (req, res) => { const [files] =…
1
vote
0 answers

Inserting image url in quill only displays the image icon and not the image itself

I am using quill in Next.js and I have ran into a problem. Instead of using the default base64 encoding for images, I have added a custom handler that creates an object url for the images and I later pass it to the quill.insertEmbed() method.…
1
vote
1 answer

Generating PDF for downloading and opening it in new window

I want to create a PDF with new File(["text"],"application/pdf") But I want it without any libs With Vanilla Js And get base 64 string with new FileReader Also tried URL.createObjectURL it returns a URL but if I open it, after some time…
Web Host
  • 35
  • 7
1
vote
1 answer

Svelte: how to create a Blob from `writable store`?

How can I use a "writable store" to create a "blob"? I am new to Svelte. I am trying to code a simple markdown editor for visually impaired users. The content of the "textarea" is stored in a "writable store" for further…
Henriette
  • 13
  • 3
1
vote
0 answers

How To Prevent Download From Opening on Mobile Javascript/Vue

I have a Vue application that allows for a user to download a .pdf file. Currently, if a user clicks the file download button on a mobile device, it downloads and automatically opens. I'm wanting to try and have this download occur in the…
1
vote
1 answer

getting error while rendering video by blob file by URL API

function startWebcam(){ navigator.mediaDevices.getUserMedia({video:true,audio:true}).then(localMediaStream=>{ //console.log(localMediaStream); let textFileAsBlob = new…
1
vote
0 answers

Failed to execute 'createObjectURL' on 'URL

hey guys hope you are doing fine . I am new in react js and i am facing some difficulties to fix this error . TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed. I will show you my code . I hope that someone can help…
1
vote
0 answers

Failed to execute 'createObjectURL' on 'URL': Overload resolution failed

I want to add an image upload feature to my website. If the image is uploaded I want it to be displayed in an IMG tag otherwise shows the first letter of the username. So to check whether the image is uploaded or not, I created a field in my…
1
vote
0 answers

Fetch partial content (206) with Object URL

I have an API that returns video stream with partial content (206) support. But this API needs some custom headers like authentication, so I use fetch to get the stream and create object URL. I've created a fetch request: let vidSrc =…
nrofis
  • 8,975
  • 14
  • 58
  • 113
1
vote
1 answer

Zip file is invalid from Flask send_fiile

I'm very new to JS code and just take over left work from colleague. When Flask code return zip file using send_file, the JS side download seems invalid. Other format, like text and csv are good. The Server code snippet: @bp.route('/download_file',…
1
vote
1 answer

Using URL.createObjectURL in Web Worker in IE11

I have to handle kind of large data sets with plain text. I get these data via a cloud as several chunks and use a web worker to process and format the data. In the end, I want to download it to the user's local storage. Therefore, I'm using Blobs…
1
vote
1 answer

createObjectURL: Type Error in Safari when using Blob

In HTML
gertschi
  • 13
  • 4