Browse SDKs · iOS
SDKsiOS

Create an image message from a local path

Create an image message from an absolute path with OpenIM iOS SDK.

Copy
OIMMessageInfo *message =
    [OIMMessageInfo createImageMessageFromFullPath:imageURL.path];

The path must be an absolute image path readable by the current application. Send the returned object through the regular sending API so the SDK can upload and send it.