Closed dyjAndroid closed 2 years ago
客户端是否会上传缩略图
public void sendImgMsg(Conversation conversation, Uri imageFileThumbUri, Uri imageFileSourceUri) { ImageMessageContent imgContent = new ImageMessageContent(imageFileSourceUri.getEncodedPath()); String thumbParam = ChatManager.Instance().getImageThumbPara(); if (!TextUtils.isEmpty(thumbParam)) { imgContent.setThumbPara(ChatManager.Instance().getImageThumbPara()); } sendMessage(conversation, imgContent); }
imageFileThumbUri 这个客户端生成的缩略图,发送消息的时候没有用到,那么缩略图到底是客户端上传的还是服务器自己生成的呢
缩略图是客户端上传的,请参考ImageMessageContent#encode
ImageMessageContent#encode
客户端是否会上传缩略图
imageFileThumbUri 这个客户端生成的缩略图,发送消息的时候没有用到,那么缩略图到底是客户端上传的还是服务器自己生成的呢