Thanks to visit codestin.com Credit goes to huongdanjava.com
Convert InputStream to ByteArray using Apache Commons IO