使用AsyncHttpClient下載gif圖片出現org.apache.http.client.HttpResponseException: Content-Type not allowed!錯誤
原因:制定文件下載類型時,沒有指定gif類型
解決方法:
// 指定文件類型 String[] allowedContentTypes = new String[]{"image/png", "image/jpeg", "image/gif"};
使用AsyncHttpClient下載gif圖片出現org.apache.http.client.HttpResponseException: Content-Type not allowed!錯誤
原因:制定文件下載類型時,沒有指定gif類型
解決方法:
// 指定文件類型 String[] allowedContentTypes = new String[]{"image/png", "image/jpeg", "image/gif"};