Let’s say you’ve created a download page where the client can get code from JAR files. Instead of sending back an HTML page, the response contains the bytes representing the JAR. You read the bytes of the JAR file, then write them to the response’s output stream.