Category: IO

java tutorials

Compress Images Java Example

This tutorial shows how to compress images in Java. You can reduce an image file size by compressing an image. This file reduction sometimes leads to increased performance and decreased network bandwidth. But when...
java tutorials

Convert BufferedImage to Byte Array in Java

In this example we demonstrate how to convert a BufferedImage to byte[] using standard Java. We use try-with-resources to manage the closing of OutputStream. Convert BufferedImage to Byte Array We create the BufferedImage by...