In GitHub URL’s: what is the difference between a tree and a blob?

GitHub’s website currently seems to be: Using blob for files, and tree for directories, in URLs; Redirecting browsers which request file URLs containing tree to contain blob instead; and Redirecting browsers which request directory URLs containing blob to URLs containing tree instead. It’s possible that GitHub’s website, at the time you asked the question, was … Read more

How can I insert into a BLOB column from an insert statement in sqldeveloper?

To insert a VARCHAR2 into a BLOB column you can rely on the function utl_raw.cast_to_raw as next: insert into mytable(id, myblob) values (1, utl_raw.cast_to_raw(‘some magic here’)); It will cast your input VARCHAR2 into RAW datatype without modifying its content, then it will insert the result into your BLOB column. More details about the function utl_raw.cast_to_raw

Can I set the filename of a PDF object displayed in Chrome?

Chrome’s extension seems to rely on the resource name set in the URI, i.e the file.ext in protocol://domain/path/file.ext. So if your original URI contains that filename, the easiest might be to simply make your <object>’s data to the URI you fetched the pdf from directly, instead of going the Blob’s way. Now, there are cases … Read more

Appending Blob data

Blobs are “immutable” so you can’t change one after making it. Constructing a new Blob that appends the data to an existing blob (as you wrote in your initial question) is a good solution. If you don’t need to use the Blob each time you append a part, you can just track an array of … Read more

convert image into blob using javascript

You can do this in two ways: Load the image source using XMLHttpRequest() or fetch() instead of an image element Convert image element via a canvas element. This will recompress the image causing some quality loss. There is also the “risk” of color/gamma changes depending of the image contains ICC/gamma information and/or the browser support … Read more