imoonstal_个人页

个人头像照片 imoonstal
0
3
0

个人介绍

暂无个人介绍

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息
正在加载, 请稍后...
暂无更多信息
  • 回答了问题 2016-11-08

    钉盘接口-发送文件给指定用户 问题

    Re钉盘接口-发送文件给指定用户 问题 我也是这个问题,楼主解决了么? ------------------------- Re钉盘接口-发送文件给指定用户 问题 引用第3楼谦吉于2016-11-01 09:13发表的  : 参考一下这个文档,应该是用这个上传接口: https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.Hrkjow&treeId=172&articleId=104971&docType=1 [url=https://bbs.aliyun.com/job.php?action=topost&tid=298285&pid=842152][/url] 这个接口上传的素材也提示不合法的media_id
    踩0 评论0
  • 回答了问题 2016-10-21

    钉钉开放平台 上传多媒体文件一直系统繁忙 errcode1

    Re钉钉开放平台 上传多媒体文件一直系统繁忙 errcode1 需要发5贴才能贴地址,请看5楼把 ------------------------- Re钉钉开放平台 上传多媒体文件一直系统繁忙 errcode1 等5秒在发一帖 ------------------------- Re钉钉开放平台 上传多媒体文件一直系统繁忙 errcode1 这给帖子能删了么 ------------------------- Re钉钉开放平台 上传多媒体文件一直系统繁忙 errcode1 第四贴了。。。。真烦 ------------------------- Re钉钉开放平台 上传多媒体文件一直系统繁忙 errcode1 https://bbs.aliyun.com/read/297317.html?displayMode=1&page=e#a 看3楼
    踩0 评论0
  • 回答了问题 2016-10-21

    钉钉上传文件接口失败,-1 系统繁忙,求助

    Re钉钉上传文件接口失败,-1 系统繁忙,求助 下面这段代码是一个做java的朋友给我,说可以,你试试。的换成e---Http,---去掉。这个词禁止发表,哎 另外.net版本的这个问题我也解决了。我靠,不让我发地址。 终于够5贴了 http://www.cnblogs.com/imoonstal/p/5984205.html public static JSONObject uploadMedia(String url, File file) {        Closeabl的Response response = null;        Closeabl的Client httpClient = getHttpClient();        if (httpClient == null) {            return null;        }        HttpPost httpPost = new HttpPost(url);        RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(2000).setConnectTimeout(2000).build();        httpPost.setConfig(requestConfig);        HttpEntity requestEntity = MultipartEntityBuilder.create().addPart('media',                                                                           new FileBody(                                                                                        file,                                                                                        ContentType.APPLICATION_OCTET_STREAM,                                                                                        file.getName())).build();        httpPost.setEntity(requestEntity);        try {            response = httpClient.execute(httpPost, new BasicHttpContext());            if (response.getStatusLine().getStatusCode() != 200) {                System.out.println('request url failed, http code=' + response.getStatusLine().getStatusCode()                                   + ', url=' + url);                return null;            }            HttpEntity entity = response.getEntity();            if (entity != null) {                String resultStr = EntityUtils.toString(entity, 'utf-8');                JSONObject result = JSON.parseObject(resultStr);                if (result.getInteger('errcode') == 0) {                    return result;                } else {                    System.out.println('request url=' + url + ',return value=');                    System.out.println(resultStr);                }            }        } catch (Exception e) {            System.out.println('request url=' + url + ', exception, msg=' + e.getMessage());            e.printStackTrace();        } finally {            if (response != null) try {                response.close();            } catch (IOException e) {                e.printStackTrace();            }        }        return null;    } ------------------------- Re回 2楼imoonstal的帖子 引用第4楼蘇于2016-10-21 16:04发表的 回 2楼imoonstal的帖子 : 谢谢,已经解决了,还有个问题,请问知道吗? 下载文件时,不管上传上去的事什么类型的,下载下来都是XXXX.file文件,知道在哪获取到文件类型转换吗? [url=https://bbs.aliyun.com/job.php?action=topost&tid=297317&pid=839937][/url] 头文件里有你上传时的文件名。这个是有工具获取的头。 [attachment=114688] 我是.net开发的,头是这样取的 [attachment=114690]
    踩0 评论0
正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息