Removed input stream reading using byte array