Browse SDKs · Flutter
SDKsFlutter

Create an image message from URLs

Create an image message from uploaded image data with the OpenIM Flutter SDK.

Copy
final message = await OpenIM.iMManager.messageManager.createImageMessageByURL(
  sourcePicture: source,
  bigPicture: big,
  snapshotPicture: snapshot,
);

Each PictureInfo URL, byte size, width, and height must come from the actual upload result. Send this object with sendMessageNotOss().