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 = wxCpService.getMediaService().upload(mediaType, fileType, inputStream); // 或者 res = wxCpService.getMediaService().upload(mediaType, file); res.getType(); res.getCreatedAt(); res.getMediaId(); res.getThumbMediaId();
// 获得一个在系统临时目录的文件 File file = wxCpService.mediaDownload(media_id);