10 2021 档案

摘要:/// <summary> /// Base64编码存储为图片文件 /// </summary> /// <param name="base64Str">Base64编码</param> /// <param name="savePath">图片完整路径</param> /// <returns>< 阅读全文
posted @ 2021-10-22 17:11 BloggerSb 阅读(407) 评论(0) 推荐(0) 编辑
摘要:接口: [HttpPost] public HttpResponseMessage UploadImg() { var result = new BaseResponse<List<ImageDto>>() { Data = new List<ImageDto>() }; result.Code = 阅读全文
posted @ 2021-10-22 17:06 BloggerSb 阅读(966) 评论(0) 推荐(0) 编辑
摘要:/// 将物理路径转换成相对路径 /// </summary> /// <param name="imagesurl1"></param> /// <returns></returns> private string urlToVirtual(string imagesurl1) { //其实这里的 阅读全文
posted @ 2021-10-19 17:46 BloggerSb 阅读(483) 评论(0) 推荐(0) 编辑
摘要:string path = Request.MapPath(@"~\files\"+fileName);//将指定的虚拟路径映射到物理路径 string serverpath = Server.MapPath(@".\files\" + fileName);//返回与web服务器上的指定虚拟路径相对 阅读全文
posted @ 2021-10-19 14:44 BloggerSb 阅读(104) 评论(0) 推荐(0) 编辑
摘要:HttpClient和MultipartFormDataContent(传送门)最低适用于.NET Framework 4.5版本 public async Task<WebApiResult> UploadFile(UploadFileModel info, IList<IFormFile> fi 阅读全文
posted @ 2021-10-18 19:00 BloggerSb 阅读(2896) 评论(0) 推荐(0) 编辑
摘要:public class HttpRequestClient { private ArrayList bytesArray; private Encoding encoding = Encoding.UTF8; private string boundary = String.Empty; publ 阅读全文
posted @ 2021-10-18 18:57 BloggerSb 阅读(1009) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Specialized; using System.IO; using System.Net; using System.Text; namespace ConsoleApplication1 { public stati 阅读全文
posted @ 2021-10-18 18:47 BloggerSb 阅读(824) 评论(0) 推荐(1) 编辑
摘要:copy /Y $(TargetPath) $(SolutionDir)Libcopy /Y $(TargetPath) $(SolutionDir)..\copy /Y $(TargetDir)$(TargetName).xml $(SolutionDir)Libcopy /Y $(TargetD 阅读全文
posted @ 2021-10-15 11:12 BloggerSb 阅读(46) 评论(0) 推荐(0) 编辑
摘要:GridView 列太长,设定ItemStyle-Width="200"无效 <%-- <asp:BoundField DataField="Codes" HeaderText="扫描的码" ItemStyle-HorizontalAlign="center" ItemStyle-Width="20 阅读全文
posted @ 2021-10-14 14:50 BloggerSb 阅读(24) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示