How do you retrieve the data written to a `ByteArrayOutputStream`?
You can retrieve the data by calling the `getBytes()` method on `ByteArrayOutputStream`.
You're close, but the correct method is `toByteArray()`, not `getBytes()`.
Can you explain the difference between `toByteArray()` and `getBytes()`?