0
我把文件上傳到AWS S3服務器問心無愧代碼:的Android上傳圖像AWS-調整
private void beginUpload(String filePath) {
if (filePath == null) {
Toast.makeText(this, "Could not find the filepath of the selected file",
Toast.LENGTH_LONG).show();
return;
}
File file = new File(filePath);
TransferObserver observer = transferUtility.upload(AWSConfiguration.BUCKET_NAME, file.getName(),
file);
}
之前上傳我要調整圖像(不是我的手機,但只有在服務器上)佔用更少的內存。怎麼做?