真难啊_个人页

个人头像照片 真难啊
个人头像照片
0
2
0

个人介绍

暂无个人介绍

擅长的技术

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

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

云产品技术能力:

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

阿里云技能认证

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

    开发了一个.net版本的服务端API示例,基于WebApi,async/task

    Re开发了一个.net版本的服务端API示例,基于WebApi,async/task 楼主您好,我使用你的demo上传多媒体文件的时候总是报错,         internal byte[] UploadMedia(string url, string method, string fileName)         {             if (!File.Exists(fileName))                 throw new FileNotFoundException('需要上传的文件不存在');             var fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);             fileStream.Seek(0, SeekOrigin.Begin);             var fileBuffer = new byte[fileStream.Length];             fileStream.Read(fileBuffer, 0, fileBuffer.Length);             fileStream.Dispose();             var boundary = GenerateRadomStr();             this.Headers['Content-Type'] = string.Format('multipart/form-data; boundary={0}', boundary);             string fileFormdataTemplate =                             '\r\n--' + boundary +                             '\r\nContent-Disposition:form-data;name=\'{0}\';filename=\'{1}\'' +                             '\r\nContent-Type:application/octet-stream' +                             '\r\n\r\n';             string formDataHeader = String.Format(fileFormdataTemplate, 'media', fileName);             byte[] formDataHeaderBuffer = Encoding.UTF8.GetBytes(formDataHeader);             string begin = $'--{boundary}\r\n';             byte[] beginBuffer = Encoding.UTF8.GetBytes(begin);             string end = $'\r\n--{boundary}--\r\n';             byte[] endBuffer = Encoding.UTF8.GetBytes(end); ;             byte[] dataStream = new byte[formDataHeaderBuffer.Length + beginBuffer.Length + fileBuffer.Length + endBuffer.Length];             formDataHeaderBuffer.CopyTo(dataStream, 0);             beginBuffer.CopyTo(dataStream, formDataHeaderBuffer.Length);             fileBuffer.CopyTo(dataStream, formDataHeaderBuffer.Length + begin.Length);             endBuffer.CopyTo(dataStream, formDataHeaderBuffer.Length + begin.Length + fileBuffer.Length);             //var returnBuffer = await this.UploadDataTaskAsync(url, 'POST', dataStream);             var returnBuffer = this.UploadData(url, 'POST', dataStream);             return returnBuffer;         } 提示我上传的多媒体类型错误
    踩0 评论0
  • 提交了问题 2017-05-23

    link类型的消息,如何能超链接到指定用户的钉钉聊天窗口?

正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息