当前知识库站点已不再维护。请移步新版知识库:https://help.rongcloud.cn/

发送路径包含中文字符的图片失败

logcat 中有下面的日志: RongLog : [ FileUtils ] copyFile: src file does not exist! 或者 RongLog : [ RongIMClient ] uploadMedia Uri 文件不存在。
发布时间: 2018-04-26 19:39

回答:

原因:生成图片 Uri 的代码为 Uri.fromFile

解决方案:使用 Uri.parse("file://" + file.getFilePath()) 生成图片 Uri。