public void UploadImageToPeer() { if (!System.IO.File.Exists(ImagePath)) { string msg = string.Format("File send:{0} does not exist. Please provide a valid filepath in the Inspector!", ImagePath); Debug.Log(msg); messageDisplay.AddTextToDisplay(msg, Message.MessageType.Error); return; } long requestId = 10002; int rc = rtmClient.CreateImageMessageByUploading(ImagePath, requestId); Debug.LogFormat("Sending image {0} ---> rc={1}", ImagePath, rc); }