Microsoft Teams Bot icon

Microsoft Teams Bot

Send messages and cards via Microsoft Teams Bot

Message → Process File

AI-generated

Summary

Decode file content supplied as base64 or a JSON attachment object, validate it, and return file details with optional image optimization. The optimization helper currently simulates processing rather than resizing, compressing, or converting the image.

Inputs

  • File Data (required) — Base64 file content or a JSON attachment object.
  • File Name (required) — Name to associate with the file.
  • Content Type (required) — MIME type, such as image/jpeg or application/pdf.
  • Enable Optimization — Defaults to true; requests image optimization for image files, though the implementation simulates optimization rather than changing image data.

Output shape

A single item containing the processed file result and metadata.

The operation validates file size and basic content signatures for supported types. Optimization does not perform actual image resizing, compression, or format conversion.

Links

Discussion