Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给群发送图片的时候,当图片的大小超过1M 就无法发送了 #127

Open
nomenyyxx opened this issue Apr 28, 2019 · 6 comments

Comments

@nomenyyxx
Copy link

public HttpEntity doPostFile(String url, HttpEntity reqEntity) {
HttpEntity entity = null;
HttpPost httpPost = new HttpPost(url);
httpPost.setHeader("User-Agent", Config.USER_AGENT);
httpPost.setEntity(reqEntity);

    try {
        Log.i(TAG, "图片获取后 sendPicMsgByGroupName doPostFile  bbbbbbb  " +url);
        CloseableHttpResponse response = httpClient.execute(httpPost);
        entity = response.getEntity();
        Log.i(TAG, "图片获取后 sendPicMsgByGroupName doPostFile  cccccccccc  " +url);
    } catch (Exception e) {
        Log.i(TAG, "图片获取后  sendPicMsgByGroupName doPostFile  dddddddd  " +e.getMessage());
        Log.i(TAG, "doPostFile error = "+e.getMessage());
    }
    return entity;
}

当发送图片的大小超过1M的时候
代码跟踪到 bbbbbbb 了 但是后面就是不执行了,请问作者这个怎么解决呀

@GGBOND1024
Copy link

现在还能发送图片吗..我这边发送图片返回false..都失败了

@nomenyyxx
Copy link
Author

现在遇到了,整在苦恼呢,哥们 你们解决了吗?

@smokingrain
Copy link

大图片/文件需要分段发送,这个API还没实现哦。

@zhengjianjun521
Copy link

有一起研究这个分段上传大于1M的文件吗

@youonly-once
Copy link

有一起研究这个分段上传大于1M的文件吗

@smokingrain
Copy link

@zhengjianjun521 我项目已经实现了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants