# Byte array contains ints?

**URL:** <https://discourse.processing.org/t/byte-array-contains-ints/18902>\
**Category:** Beginners\
**Created:** [March 22, 2020, 3:29pm UTC](https://discourse.processing.org/t/byte-array-contains-ints/18902 "2020-03-22T15:29:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yes](https://avatars.discourse-cdn.com/v4/letter/y/ea5d25/32.png) [@yes](https://discourse.processing.org/u/yes)\
**Post date:** [March 22, 2020, 3:29pm UTC](https://discourse.processing.org/t/byte-array-contains-ints/18902/1 "2020-03-22T15:29:22Z")

</div>

When I run this code, Processing thinks that some of these are ints when they are bytes. How can I fix this?

`byte[] logo = {0xCE, 0xED, 0x66, 0x66, 0xCC, 0x0D, 0x00, 0x0B, 0x03, 0x73, 0x00, 0x83, 0x00, 0x0C, 0x00, 0x0D, 0x00, 0x08, 0x11, 0x1F, 0x88, 0x89, 0x00, 0x0E, 0xDC, 0xCC, 0x6E, 0xE6, 0xDD, 0xDD, 0xD9, 0x99, 0xBB, 0xBB, 0x67, 0x63, 0x6E, 0x0E, 0xEC, 0xCC, 0xDD, 0xDC, 0x99, 0x9F, 0xBB, 0xB9, 0x33, 0x3E};`

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [March 22, 2020, 3:40pm UTC](https://discourse.processing.org/t/byte-array-contains-ints/18902/2 "2020-03-22T15:40:35Z")

</div>

[Processing.org/reference/byteconvert\_.html](http://Processing.org/reference/byteconvert_.html)

```auto
final byte[] logo = byte(new int[] {
  0xCE, 0xED, 0x66, 0x66, 0xCC, 0x0D, 0x00, 0x0B, 
  0x03, 0x73, 0x00, 0x83, 0x00, 0x0C, 0x00, 0x0D, 
  0x00, 0x08, 0x11, 0x1F, 0x88, 0x89, 0x00, 0x0E, 
  0xDC, 0xCC, 0x6E, 0xE6, 0xDD, 0xDD, 0xD9, 0x99, 
  0xBB, 0xBB, 0x67, 0x63, 0x6E, 0x0E, 0xEC, 0xCC, 
  0xDD, 0xDC, 0x99, 0x9F, 0xBB, 0xB9, 0x33, 0x3E
  });

println(logo);

exit();

```
