Questions tagged [blob]

A BLOB is a collection of binary data stored as a single entity in a database management system.

A BLOB (binary large object, basic large object, BLOB, or BLOb) is a collection of binary data stored as a single entity in a database management system. Blobs are typically images, audio or other multimedia objects, though sometimes binary executable code is stored as a blob.

Beyond that, the term BLOB has various slightly related usages, see wikipedia for further examples.

7634 questions
2
votes
2 answers

Firebase storage API - upload file with metada

I am using the rest api to upload files to firebase storage as described in the following answer https://stackoverflow.com/a/65462416/8634683. And I would like to set the cache-control metadata but can't figure it out. I found the next firebase doc…
dan
  • 326
  • 4
  • 14
2
votes
1 answer

Javascript for playing audio from server

I have a database in MS SQL Server'08 with mp3 files as BLOB objects (I use filestream for storing). There's a WCF service which works with database (linq). There's a client application on html+javascript (and nothing more). How to play one of the…
Ilya Blokh
  • 11,923
  • 11
  • 52
  • 84
2
votes
1 answer

Get Blob object back from blob URL created with URL.createObjectURL

Every question I found told me that the only way to get back the object is to fetch it with an ajax request using the blob:https://www.example.com/0ea6c8a8-732f-42c7-9530-4805c4e785f5 as the destination url. Are blobs not saved in my browsers memory…
miran80
  • 945
  • 7
  • 22
2
votes
1 answer

Convert a Video Blob URL to Video mp4 File

I'm trying to convert mediaBlobUrl that I get after recording a video using Media Recorder to a mp4 file, const { status, startRecording, stopRecording, mediaBlobUrl, } = useReactMediaRecorder({ video: true…
Shivansh Pratap
  • 21
  • 1
  • 1
  • 3
2
votes
1 answer

`web_sys::Url::create_object_url_with_blob(&blob)` not formatting binary data correctly

I have the following code: let bytes: Vec = load_file_as_bytes("mydoc.docx"); // This gets a byte vec representation of the file mydoc.docx let uint8arr = unsafe { js_sys::Uint8Array::view(&bytes) }; let js_value =…
2
votes
1 answer

Save all images (BLOB) from database to folder ('Out of memory.')

I have a SQLite database with a table have a good amount if images, and I got some problems in database size, So I converted the logic to store the images in a folder and retrieve the needed images, so what I'm doing now it trying to get all the…
RabQab
  • 51
  • 4
2
votes
0 answers

JavaScript FileReader returns "undefined"

I was trying to Base64 encode a user-provided file with JS. This is my code: let image = document.getElementById('image').files[0]; if (!image) { alert('No images have been provided!'); return; } let blob = new Blob([image], { type:…
2
votes
2 answers

Jest test creates empty blob object

I have a working function that builds a new Blob() in my app _buildBlobForProperties(app): Blob { return new Blob( [ JSON.stringify({ name: app.name, description: app.description, }), …
Jason Rogers
  • 19,194
  • 27
  • 79
  • 112
2
votes
1 answer

How to retrieve and save to Blob a binary file video from Flask?

I know few things about video encoding and I encountered an issue that is blocking me for few days. Goal: Record a video from my laptop's webcam with a VueJS front end application. Send this video to a Python flask app in the backend within a…
nJoooy
  • 45
  • 6
2
votes
1 answer

Blob to Uint8Array without callback

Is it possible to convert a Blob to Uint8Array without using a callback and just using JavaScript? How to return the uint8array for the calling variable uint8data? let str='content'; str2blob=(str,type='text/plain')=>new…
Spiderpoison
  • 95
  • 2
  • 9
2
votes
1 answer

Exception: The blob format is unsupported. Google app script

I am running below code in google app script. var data = "iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="; var ssblob =…
2
votes
2 answers

How to create a Video URL Blob in NodeJS?

Can you please help me in create a Video URL Blob in NodeJS? var xhr = new XMLHttpRequest(); xhr.responseType = 'blob'; xhr.onload = function() { var reader = new FileReader(); reader.onloadend = function() { …
Siddharth Kumar
  • 168
  • 1
  • 2
  • 13
2
votes
1 answer

Hibernate @Lob on byte[] causes "Bad value for type long"

I'm trying to lazily fetch single byte[] content java property using Hibernate under Spring Boot, accessing PostgreSQL database. So I pulled together testing app for testing different solutions. One of them required me to use @Lob annotation on said…
Herioz
  • 81
  • 7
2
votes
2 answers

Why can't a blob url be shared by two video elements?

I am working on a Firefox extension, where I want to be able to load a video element I create and insert into the page, and load it with the same content as the main video which plays on an Odysee page. The src url for the video in the Odysee page…
KevinHJ
  • 1,014
  • 11
  • 24
2
votes
0 answers

How to convert a blob that contains docx, ppt or xlsx into a PDF in javascript or react js?

Input will be a URL which points to the file, from which I can extract the blob. I'm trying to render MS Office file types in a web application within an IFrame.
Sirisha N
  • 31
  • 2