sendImage
Uploads an image for the given channel. Progress can be accessed via callback.
The Stream CDN imposes the following restrictions on image uploads:
The maximum image size is 100 MB
Supported MIME types are listed in StreamCdnImageMimeTypes.SUPPORTED_IMAGE_MIME_TYPES
Return
Executable async Call which completes with Result containing an instance of UploadedFile if the image was successfully uploaded.
Parameters
The channel type. ie messaging.
Еhe channel id. ie 123.
The image file that needs to be uploaded.
The callback to track progress.
See also
Uploads an image that belongs to the message with messageId, so the id can be propagated to the FileUploader as part of the upload context.
Return
Executable async Call which completes with Result containing an instance of UploadedFile if the image was successfully uploaded.
Parameters
The channel type. ie messaging.
The channel id. ie 123.
The image file that needs to be uploaded.
The id of the message the image belongs to, or null when the upload is not part of sending a message.
The callback to track progress.