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
27
votes
2 answers

JavaScript FileReader Slice Performance

I am trying to access the first few lines of text files using the FileApi in JavaScript. In order to do so, I slice an arbitrary number of bytes from the beginning of the file and hand the blob over to the FileReader. For large files this takes very…
kacase
  • 1,993
  • 1
  • 18
  • 27
27
votes
7 answers

How can I read http errors when responseType is blob in Axios with VueJs?

I'm using blob responseType with Axios in my VueJS app for downloading a document from the server. When the response code is 200 it works fine and download the file but when there is any http error, I'm not able to read the status code when I catch…
Sai
  • 271
  • 1
  • 3
  • 6
26
votes
3 answers

How to write / update Oracle blob in a reliable way?

I'm trying to write and update a pdf document in a blob column but I'm just able to update the blob only writing more data than the previous stored data. If I try to update the blob column with a smaller document data I get only a corrupted…
alessmar
  • 4,689
  • 7
  • 43
  • 52
26
votes
3 answers

Requesting blob images and transforming to base64 with fetch API

I have some images that will be displayed in a React app. I perform a GET request to a server, which returns images in BLOB format. Then I transform these images to base64. Finally, i'm setting these base64 strings inside the src attribute of an…
Desistreus
  • 321
  • 1
  • 4
  • 6
26
votes
5 answers

Generate an image of a div and Save as

I'd like to create an input button "Save image" that : take a screen shot of a div ask to "Save as" on the user's computer I've found how to create a screen of a dive using html2canvas and to open it in a new tab, it works perfectly : function…
Jaggana
  • 540
  • 1
  • 6
  • 15
26
votes
3 answers

Pass Blob through ajax to generate a file

I'm trying to capture audiorecorder (https://github.com/cwilso/AudioRecorder) and send the blob through Ajax a php file, which will receive the blob content and create the file(the wave file in this case). Ajax…
João Correia
  • 275
  • 1
  • 3
  • 7
26
votes
12 answers

Saving images: files or blobs?

When you save your images (supose you have lots of them) do you store then as blobs in your Database, or as files? Why? Duplicate of: Storing Images in DB - Yea or Nay?
kurast
  • 1,660
  • 3
  • 17
  • 38
25
votes
5 answers

Cursor size limit in Android SQLiteDatabase

I download a db from internet. I save it in my datases folder and I open it. Inside the db there is a table "Ads" with 6 fields. 2 of these fields are BLOB. When I want to read from this table... I have some problem... I noticed that when I read a…
Sergio Andreotti
  • 913
  • 2
  • 8
  • 26
25
votes
1 answer

Understanding Lob segments (SYS_LOB) in oracle?

Most of the tables (if not all) have a "blob" field in it. One of the table that stores the Logs of the user's action has now grown to 8 GB (about 5 million records). And our DBA has seen that this schema is now eating space exponentially. We…
MOZILLA
  • 5,862
  • 14
  • 53
  • 59
25
votes
1 answer

Google Chrome can not open blob in new tab

I have same blob URL in two tags. One tag has target="_blank" for opening the link in new tab and the other for downloading. The "download" is fine but "Open in new tab" just works on Firefox. For Google Chrome, it keeps flashing, opens then closes…
The Anh Nguyen
  • 748
  • 2
  • 11
  • 27
25
votes
6 answers

How to convert Blob to String and String to Blob in java

I'm trying to get string from BLOB datatype by using Blob blob = rs.getBlob(cloumnName[i]); byte[] bdata = blob.getBytes(1, (int) blob.length()); String s = new String(bdata); It is working fine but when I'm going to convert String to Blob and…
Suzon
  • 749
  • 1
  • 8
  • 21
25
votes
1 answer

Blob object to base64 in JavaScript

I am trying to implement a paste handler to get an image from user's clipboard. I want this to run only on Google Chrome, I am not worried with other browsers. This is a part of a method that I found on Internet and I am trying to adapt it. // Get…
Rafael
  • 1,655
  • 3
  • 17
  • 25
24
votes
6 answers

Angular 5 manage http get with blob response and json errors

I'm working on an Angular 5 application. I have to download a file from my backend-application and to do this I simply invoke a function like this: public executeDownload(id: string): Observable { return…
xcesco
  • 4,690
  • 4
  • 34
  • 65
24
votes
5 answers

How can I get access to the Angular 2 http response body without converting it to string or json?

I would like to copy a REST response into a blob but I am unable to do some because blob() and arrayBuffer() have not yet been implemented in the Response Object. The Response Body is a private variable. ... return this.http.get(url, {params:…
sschueller
  • 533
  • 1
  • 6
  • 18
24
votes
1 answer

Blob saved as [object Object] Nodejs

I want to record audio from the microphone with HTML5, then send it to the server to be saved. Currently however, the saved file just contains [object Object] Here are some snippets of my…
Daniel Que
  • 1,734
  • 4
  • 20
  • 31