Browse SDKs · iOS
SDKsiOS

Create an image message from a URL

Create an image message from previously uploaded image information with OpenIM iOS SDK.

Copy
OIMMessageInfo *message =
    [OIMMessageInfo createImageMessageByURL:@""
                               sourcePicture:source
                                  bigPicture:big
                             snapshotPicture:snapshot];

The URLs, sizes, widths, and heights of all three OIMPictureInfo objects must come from actual upload results. When only remote resources are available, pass an empty string as the first local source path. Send the result with sendMessageNotOss:....