# saveFrame to byte array

**URL:** https://discourse.processing.org/t/saveframe-to-byte-array/22840
**Category:** Libraries
**Created:** [July 25, 2020, 11:47pm UTC](https://discourse.processing.org/t/saveframe-to-byte-array/22840 "2020-07-25T23:47:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [July 28, 2020, 7:10pm UTC](https://discourse.processing.org/t/saveframe-to-byte-array/22840/2 "2020-07-28T19:10:49Z")

</div>

Maybe the `saveImageIO()` definition could be useful in your use case from the Processing’s source code [here](https://github.com/processing/processing/blob/master/core/src/processing/core/PImage.java#L3213). This will convert it to a byte array.

Previous posts:

- [Sending byte array over processing network (Processing 3)](https://discourse.processing.org/t/sending-byte-array-over-processing-network-processing-3/5685/11)
- [https://forum.processing.org/two/discussion/484/converting-video-capture-image-to-byte](https://forum.processing.org/two/discussion/484/converting-video-capture-image-to-byte)

Kf

---

_[View the full topic](https://discourse.processing.org/t/saveframe-to-byte-array/22840)._
