Questions tagged [bloburls]

Blob URLs is actually 2 combined concepts: BLOBs and Object-URLs in html5 and javascript

54 questions
1
vote
2 answers

Problem with drawing image on canvas after loading it with fetch and async/await

I tried to load image using fetch and async/await and display it on canvas, but it doesn't work. The image isn't drawn on canvas. It loads correctly into img element in HTML. On canvas if I wrap the drawing code in setTimeout it works, but I would…
1
vote
0 answers

Blob URL generation confusion

I am using the following piece of code to generate blob URL for an image: 1) let arrayBufferView = new Int8Array(this.response); let blob = new Blob([arrayBufferView], {type : 'image/png'}); let img = document.querySelector('img'); …
tin_tin
  • 478
  • 3
  • 10
  • 24
1
vote
1 answer

How to create a Blob URL to hide original URL Source of the file using java script

I am creating a website where I publish Video files and Pdf files. I need to hide the original URLs of those files while inspecting them. So I want to know how to create Blob URLs using JavaScript.
Real Tech Hacks
  • 367
  • 3
  • 11
1
vote
1 answer

How can i save an image to a Azure Blob and name it with specific fields and return the Blob Url and save it to database in .net core 2.2

An ios app calls a .net core web API(post method) to send a few details to save in SQL Database. I have to save this image in a blob and name it as EmpID_PunchInDate_PunchInTime.png I have the below code but I'm not able to figure out how to call…
1
vote
0 answers

Fetch a blob URL of the static video/mp4 file and video.load() throws ERR_REQUEST_RANGE_NOT_SATISFIABLE

I'm trying to use a blob URL achieved with fetch() in Javascript and the returning blob URL(text/plain) from response is going to original file URL before URL.revokeObjectURL() is called. However, I faced ERR_REQUEST_RANGE_NOT_SATISFIED error from…
Jejun
  • 410
  • 2
  • 13
1
vote
1 answer

How to download attachment as binary data under strict mode?

I am using the following function for downloading an attachment file, as binary data, inside an Office 365 app: var saveByteArray = function (data, name) { var a = document.createElement("a"); document.body.appendChild(a); a.style =…
DevÁsith
  • 1,072
  • 12
  • 38
0
votes
0 answers

Download Image from Webview with blob:URLS in kotlin android

I have tried Download Blob file from Website inside Android WebViewClient and similar others. But not worked. Getting error in console like "Not allowed to load local resource: blob:https:" fun getBase64FromBlobUrl(blobUrl:String):String{ …
0
votes
1 answer

cannot download file from BlobUrl (using MediaReader)

I have the following code: let self = this; this.chunks = []; const canvas2 = document.getElementById("self-canvas"); let recordStream = canvas2.captureStream(1); var options; …
The Blind Hawk
  • 1,199
  • 8
  • 24
0
votes
0 answers

How to change the url' name in URL.createObjectURL(file)?

I want to change the name that appears in the url when it is created, because it is not legible or identifying const file = new File([blob],"name.pdf", { type:"application/pdf" }); const url = window.URL.createObjectURL(file); window.open(url,…
0
votes
0 answers

Play Application/octect stream in HTML video tag

We are trying to play video from a VMS system in HTML, we do have an https videoFileDownload link which gives the file, my plan is to use fetch api to get the video and use blob url to play in tag. However, the blob data url getting created is of…
0
votes
2 answers

React-easy-crop just returns a blob url

I am using react-easy-crop to allow users to modify their profile pictures after uploading. The problem I am experiencing is that after cropping, the image is returned in the form of a blob url like this:…
sgt_pepper85
  • 421
  • 4
  • 14
0
votes
1 answer

Clear blob and data urls from browser

we currently have a web app based on NodeJS where data is gathered and its charts are presented as images using the plotlyJS. Below shown is one such code snippet which creates a chart of the data as an image and uses the generated URL to update the…
0
votes
1 answer

C++ download audio/video file from blob URL?

I have an Angular front end with a C++ powered back end. I want the C++ back end to grab a file from a blob URL created by the front end (with URL.CreateObjectURL). I have tried using URLDownloadToFile: HRESULT hr = URLDownloadToFile(NULL,…
0
votes
1 answer

How to set download file name html2pdf.js on blob url

I am using html2pdf.js I should show preview before my customer will download files. The way of 'dataurlnewwindow' can show preview, but download button is not working. So i change bloburl output, and download button is working. But when i clicked…
Jeongkuk Seo
  • 127
  • 2
  • 15
0
votes
2 answers

WebView2 - How to read data from BLOB URL?

How do i read data as text from a BLOB Url in WebView2 ? I've tried WebView2 callback from Javascript which i couldn't make it work. I appreciate whether it is a Javascript solution or not but i prefer C++.
Kitiara
  • 343
  • 6
  • 21