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
24
votes
1 answer

How long does a Blob persist?

I'm trying to write a fail-safe program that uses the canvas to draw very large images (60 MB is probably the upper range, while 10 MB is the lower range). I have discovered long ago that calling the canvas's synchronous function toDataURL usually…
Patrick Roberts
  • 49,224
  • 10
  • 102
  • 153
23
votes
2 answers

HTML5 Video: Streaming Video with Blob URLs

I have an array of Blobs (binary data, really -- I can express it however is most efficient. I'm using Blobs for now but maybe a Uint8Array or something would be better). Each Blob contains 1 second of audio/video data. Every second a new Blob is…
stevendesu
  • 15,753
  • 22
  • 105
  • 182
23
votes
2 answers

IndexedDB: Store file as File or Blob or ArrayBuffer. What is the best option?

Now most of browsers are supporting IndexedDB to store data/file directly as File, Blob or ArrayBuffer. This code saves a IDB key 'File1' as File var a = document.getElementById("userfile"); var b =…
Ankit_Shah55
  • 799
  • 2
  • 9
  • 17
23
votes
2 answers

Retrieve large blob from Android sqlite database

I stored chunks of binary data (protobufs) in the sqlite database of an Android app without realizing that Android's Cursor can only hold a maximum of 1MB of data. I now know that I should have stored these binary blobs in files and only referenced…
ashughes
  • 7,155
  • 9
  • 48
  • 54
22
votes
2 answers

Problem downloading a PDF blob in JavaScript

I've created a function that takes a blob and fileName which is supposed to download that blob implemented as follows: const blobToBase64 = (blob, callback) => { const reader = new FileReader(); reader.onloadend = () => { const base64 =…
Barry Michael Doyle
  • 9,333
  • 30
  • 83
  • 143
22
votes
4 answers

Azure Blob: "The condition specified using HTTP conditional header(s) is not met"

I got this exception when I run my application. It happens also in the real Azure blob storage. I've caught with Fiddler the request that creates this problem: GET…
vtortola
  • 34,709
  • 29
  • 161
  • 263
22
votes
1 answer

MySQL Binary Storage using BLOB VS OS File System: large files, large quantities, large problems

Versions I am running (basically latest of everything): PHP: 5.3.1 MySQL: 5.1.41 Apache: 2.2.14 OS: CentOS (latest) Here is the situation. I have thousands of very important documents, ranging from customer contracts to voice signatures…
Quantico773
  • 253
  • 1
  • 2
  • 7
22
votes
5 answers

How to create an AudioBuffer from a Blob?

I have an audio file/blob that has been created using the MediaRecorder api: let recorder = new MediaRecorder(this.stream) let data = []; recorder.ondataavailable = event => data.push(event.data); and then later when the recording is finished: let…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
22
votes
1 answer

How to create an ArrayBuffer and data URI from Blob and File objects without FileReader?

This Question is related to and inspired by How to updoad in old browsers (ex Safari 5.1.4) Given an element having a files property containing File objects which inherit from Blob, is it possible to create a ArrayBuffer and…
guest271314
  • 1
  • 15
  • 104
  • 177
22
votes
4 answers

FILESTREAM files being left behind after row deleted

I have successfully set up FILESTREAM on my SQL 2008 server; however I've noticed that even when I have deleted rows containing FILESTREAM data, the physical data file doesn't seem to get deleted. By the physical file, I mean the file in SQLServer's…
Dale
  • 1,711
  • 2
  • 20
  • 30
22
votes
9 answers

How to insert image in mysql database(table)?

I want to insert image into a table like CREATE TABLE XX_SAMPLE(ID INT ,IMAGE BLOB); So can you help out form how to insert image into the above table.
Viru
  • 525
  • 2
  • 7
  • 15
22
votes
1 answer

Storing base64 encoded data as BLOB or TEXT datatype

We have a MySQL InnoDB table holding ~10 columns of small base64 encoded javascript files and png (<2KB size) images base64 encoded as well. There are few inserts and a lot of reads comparatively, however the output is being cached on a Memcached…
21
votes
6 answers

Upload image directly through mySQL Command Line

I have a certain table in mySQL which has a field called "image" with a datatype of "BLOB". I was wondering if it is possible to upload an image in that field directly from the Command Line Client rather than doing it through php...If it is…
BurninatorDor
  • 1,009
  • 5
  • 19
  • 42
21
votes
2 answers

URL to access private blob in Azure Storage

We're just getting started with Azure Storage. In our scenario we upload to private blobs that we later need to access directly from our client app, e.g. images. Is there a way to address private blobs in Azure Storage with a URL containing the…
ATV
  • 4,116
  • 3
  • 23
  • 42
21
votes
2 answers

Download large data stream (> 1Gb) using javascript

I was wondering if it was possible to stream data from javascript to the browser's downloads manager. Using webrtc, I stream data (from files > 1Gb) from a browser to the other. On the receiver side, I store into memory all this data (as arraybuffer…
Brian
  • 287
  • 1
  • 2
  • 8