wrap inputstream with InputStreamBodyGenerator.