We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
InputStream inputStream = ...; File file = ...; WxMediaUploadResult res = wxMpService.getMaterialService().mediaUpload(mediaType, fileType, inputStream); // 或者 res = wxMpService.getMaterialService().mediaUpload(mediaType, file); res.getType(); res.getCreatedAt(); res.getMediaId(); res.getThumbMediaId();
// 获得一个在系统临时目录的文件 File file = wxMpService.getMaterialService().mediaDownload(media_id);