0
在我的Android應用程序中,用戶通過相機拍攝照片。它然後可作爲位圖使用:如何通過http發送位圖到臉部檢測azure api文章
Bitmap photo = (Bitmap) data.getExtras().get("data");
這我想通過http post發送到Azure Face-detect API。目前我只能使用給定的URL來處理圖片:
StringEntity reqEntity = new StringEntity("{\"url\":\"https://upload.wikimedia.org/wikipedia/commons/c/c3/RH_Louise_Lillian_Gish.jpg\"}");
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = httpclient.execute(request)
如何使用位圖照片將其發送到天藍色?