# How to save instanse of LiveStreamPacketizerCupertinoChunk to file?

**URL:** <https://community.wowza.com/t/how-to-save-instanse-of-livestreampacketizercupertinochunk-to-file/48717>\
**Category:** Wowza Streaming Engine\
**Created:** [May 12, 2017, 1:52pm UTC](https://community.wowza.com/t/how-to-save-instanse-of-livestreampacketizercupertinochunk-to-file/48717 "2017-05-12T13:52:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Roman](https://community.wowza.com/u/Roman)\
**Post date:** [May 12, 2017, 1:52pm UTC](https://community.wowza.com/t/how-to-save-instanse-of-livestreampacketizercupertinochunk-to-file/48717/1 "2017-05-12T13:52:02Z")

</div>

I have an instance of LiveStreamPacketizerCupertinoChunk in onFillChunkEnd handler

[https://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/IHTTPStreamerCupertinoLivePacketizerDataHandler2.html](https://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/IHTTPStreamerCupertinoLivePacketizerDataHandler2.html).

I need to save it to file system. The same file clients getting from chunklist.

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [May 28, 2017, 3:50am UTC](https://community.wowza.com/t/how-to-save-instanse-of-livestreampacketizercupertinochunk-to-file/48717/2 "2017-05-28T03:50:18Z")

</div>

Hello,

I believe you would need to create a custom module to be able to write playlists and media segments to local disk. We do have fully functional examples of this [here](https://github.com/WowzaMediaSystems/wse-example-pushpublish-hls/blob/d8e5a0374d71cfefd5dca75cba673a6f47e2741c/README.md#SampleImplementation).

Hope this helps you get started.

Regards,

Alex C
