ByteArrayOutputStream before process data