File Storage On IC

Hopefully this code helps:

This is how CanCan chunks video files. Basically, take a big byte array (i.e. Array<number>) and split it up!

Here’s another one:

The tricky part IMO is getting this byte array from a file. You might need to use blobs or ArrayBuffers or something like that… it’s in this code.

7 Likes