blob: 9906a01b326c5ffa176a263a63f4d24a9480b946 [file] [log] [blame]
import createBlob from '../../deps/binary/blob';
function readAsBlobOrBuffer(storedObject, type) {
// In the browser, we've stored a binary string. This now comes back as a
// browserified Node-style Buffer, but we want a Blob instead.
return createBlob([storedObject.toArrayBuffer()], {type: type});
}
export default readAsBlobOrBuffer;