i know that it puts the bytes into a buffer. But is that buffer is located somewhere in the memory? and doesnt it make the application slow if it uses that adapter?/Stream?

The "buffer" is a byte array that is allocated like any other Object in the Java VM's memory. Because all the methods are accessing data in memory, they are fast.

Good fun! You seem to be developing a wide range of web-related skills. I see a great future ahead for you.....

commented: thanks for the java help +3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.