# File Storage On IC

**URL:** <https://forum.dfinity.org/t/file-storage-on-ic/9207>\
**Category:** Developers\
**Tags:** Discussing, community-consideration\
**Created:** [November 30, 2021, 2:39pm UTC](https://forum.dfinity.org/t/file-storage-on-ic/9207 "2021-11-30T14:39:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jzxchiang](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jzxchiang/32/2592_2.png) [@jzxchiang](https://forum.dfinity.org/u/jzxchiang)\
**Post date:** [December 2, 2021, 9:00pm UTC](https://forum.dfinity.org/t/file-storage-on-ic/9207/7 "2021-12-02T21:00:27Z")

</div>

Hopefully this code helps:

> <https://github.com/dfinity/cancan/blob/45e519f6252a182e1f90ffcdf4af69aca7cb5f2a/scripts/seed.ts#L132>

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:

> <https://github.com/dfinity/cancan/blob/6b28a79b5415261174bd82bc6f75ff1a3c316b7e/src/utils/video.ts#L45>

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.

---

_[View the full topic](https://forum.dfinity.org/t/file-storage-on-ic/9207)._
