I create a file repository for HTML5 and I use indexedDB as the repository, I request files from the server via xmlHttpRequest with the response type as arrayBuffer (for chrome) and blob (for other browsers).
Everything is fine, even if the file size is 500 MB or more (hey, it can even reach GB). But I noticed something strange when I add the file to indexedDB, it causes an error when the single file exceeds ~ 120 MB, so it is not saved. But when the file is less than 120 MB, it will save it.
Please note that this error will only occur when saving one file> 120 MB, for example, a .mp4 file with 200 MB will lead to an error, but if I have 5 videos, each of which has a size of 100 MB (so the total amount will be 500 MB), everything will be fine.
I would like to know if this is a limit rule or some kind of failure, and the two have the same error. I did not find any documentation about this. I tested it in IE and Chrome.
EDIT:
Well, I got this error, obviously, in the add or put indexedDB function while storing the file:
inside e.target.error.message:
The serialized value is too large (size = 140989466 bytes, max = 133169152 bytes)
source
share