企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

企业微信基础功能 - 通讯录、应用消息、群聊、消息推送、企业互联、素材、系统、电子发票、第三方应用授权、接口调用许可、收银台、对外收款、小程序对外收款、企业红包/向员工付款、数据与智能专区、会话内容存档、推广二维码、账号ID、安全管理

Actions248

素材管理 → [素材管理] 获取临时素材

AI-generated

Summary

Download a WeCom temporary media file by its media_id and store the bytes in the selected binary property. Optionally request a byte range for resumable or large-file downloads, with alignment checks available for encrypted media.

Inputs

  • media_ID (required) — The temporary media ID from a temporary media upload. WeCom media IDs expire after three days.
  • binaryProperty (required) — Name of the output binary property; defaults to data.
  • useRange — Enable range download. For files over 20 MB from asynchronous uploads, download in chunks no larger than 20 MB.
  • rangeStart (required) — When range download is enabled, the inclusive starting byte offset; defaults to 0.
  • rangeEnd (required) — When range download is enabled, the inclusive ending byte offset; defaults to 20,971,519. The requested chunk must not exceed 20 MB.
  • encryptedMaterial — When range download is enabled, validate alignment for encrypted media: the start offset and chunk length must be multiples of 16 bytes.

Output shape

One item per input item, with the downloaded file in binary data under the configured property name.

Range downloads return only the requested byte segment. WeCom may require range downloads for large files; oversized or invalid requests can fail.

Links

Discussion