Blobs
kview leverages kv-toolbox which provides the ability to handle arbitrarily
sized sets of binary data as well as provides some additional capabilities to
allow better handling of Blob
and File
objects.
Binary Data
Binary data is stored in a way that works around the value size limitations that Deno KV has by breaking up the data across multiple entries in a way that is transparent to the user.
Binary data entries are added or updated by uploading a file of binary data via kview. The size of binary data is available when viewing the entry. The value of existing entries can be downloaded by clicking on the download icon:
Or opened in their own tab by clicking on the expand icon:
None of the information about the source file is stored with the binary data,
where as Blob
and File
both can store information about the type which then
available when retrieving the value.
Blob
and File
JavaScript Blob
and File
objects can be stored as binary data in kview,
where their additional meta data will be stored alongside of the binary data
which then is available when viewing the entry or downloading the entry.
With blobs, the media type associated with the binary will be stored and with files, the filename and last modified data will be stored.
When viewing different media types that have supported viewers in the browser, kview will provide the data to the browser to be displayed (or heard) in the browsers view. Items like sound files, video files, images and PDFs can be displayed this way.
In addition, the value of existing entries can be downloaded by clicking on the download icon:
Or opened in their own tab by clicking on the expand icon: