SDKsAndroid
Create an image message
Create an image message from a path relative to the SDK data directory.
Message message = OpenIMClient.getInstance().messageManager
.createImageMessage(imagePath);The image file must be stored under the data directory configured during SDK initialization. Pass its path relative to that directory. This method only creates an object waiting to be sent; the regular send flow uploads the image.
Was this page helpful?