![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 85
菜鸟王小凡
这个作者很懒,什么都没留下…
展开
-
.net core ChromeDriver linux docker中Selenium工具配置的的问题以及解决方案
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录前言一、pandas是什么?二、使用步骤1.引入库2.读入数据总结前言提示:以下是本篇文章正文内容,下面案例可供参考一、pandas是什么?示例:pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。二、使用步骤1.引入库代码如下(示例):import numpy as npimport pandas as pdimport matplotlib.pyplot as pltim原创 2021-05-08 16:42:43 · 679 阅读 · 0 评论 -
windows 10 安装docker 配置 k8s 教程
参照https://github.com/AliyunContainerService/k8s-for-docker-desktop README.md有几个小问题1 安装时候 选了Use the WSL 2 based engine 的时候,勾选去掉2 设一下 阿里云 镜像加速器3 .\load_images.ps1 执行完的时候4如果你自己的和上面的不一样,请手动pull。直到你本地镜像与上面一样。C:\Windows\System32\drivers\e...原创 2020-12-20 17:33:01 · 457 阅读 · 0 评论 -
c# List<SqlParameter> 数据转 T类型
List<SqlParameter> listParam = new List<SqlParameter>(); dynamic obj = new System.Dynamic.ExpandoObject(); foreach (SqlParameter item in listParam) { ((IDictionary<string, object>)obj).Add(item.ParameterName, item.Value)...原创 2020-10-22 15:55:05 · 654 阅读 · 0 评论 -
c#多线程 HttpWebRequest 无法从传输连接中读取数据: 远程主机强迫关闭了一个现有的连接。。
c#文章好找啊,记录一下,参考解决地址:https://www.cnblogs.com/LL-723/p/4268020.html直接贴代码string responseContent = ""; int count = 0; Stream responseStream; string restring; try { System.GC.Collec...原创 2020-10-16 19:20:26 · 4991 阅读 · 0 评论 -
多线程 c# httpWebRequest 请求错误,基础连接已经关闭: 连接被意外关闭
c#资源比较少,记录下来。string responseContent = ""; int count = 0; Stream responseStream; string restring; try { System.GC.Collect(); HttpWebRequest request = (HttpWebReque...原创 2020-10-16 19:06:21 · 1835 阅读 · 0 评论 -
.net core 上传大文件视频 异常 this.Request.Form.Files Request body too large.
原因是 https://docs.microsoft.com/zh-cn/aspnet/core/mvc/models/file-uploads?view=aspnetcore-3.0默认是 30000000字节,在 Program 的 webBuilder.UseStartup() 添加 options.Limits.MaxRequestBodySize = null;public class Program{public static void Main(string[] args)原创 2020-10-13 17:56:48 · 2143 阅读 · 0 评论 -
c# RestRequest application/x-www-form-urlencoded 后台接收不到解决方法
var client = new RestClient($"addres"); var request = new RestRequest(Method.POST); request.AddHeader("content-type", "application/x-www-form-urlencoded"); request.AddParameter("application/x-www-form-urlencoded", $"id={304}...转载 2020-09-16 18:31:22 · 3504 阅读 · 0 评论 -
.net c# 修改视频md5
修改视频的md5方法[HttpPost] public dynamic GetData([FromBody]Model model) { try { string fileName = "D:/file/20200220231945.mp4"; File...原创 2020-03-22 12:56:54 · 952 阅读 · 0 评论 -
微信小程序保存图片时候真机和发布时候 fail invalid file type
详细1,保存图片的时候已经授权了,但是报errMsg: saveImageToPhotosAIbum: fail invalid file type2 wx.downloadFile,成功之后wx.saveImageToPhotosAlbum的路径要按照文档要求格式传入本机测试好用。真机和发布的报errMsg: saveImageToPhotosAIbum: fail invalid fil...原创 2019-10-16 17:35:53 · 681 阅读 · 0 评论 -
微信小程序 saveVideoToPhotosAlbum:fail invalid file type
小程序文件下载时候报错saveVideoToPhotosAlbum:fail invalid file type 因为类型不正确需要指定一下下载的类型。 wx.downloadFile({url: s,header: i.buildHeader(n),success: function(i) {200 === i.statusCode ? (t.setData({downloadVide...原创 2019-09-06 16:00:12 · 5691 阅读 · 0 评论 -
微信小程序前端加密后台.NetC#加密验证
最近做小程序破解的东西的接口。前端写了下加密方法。后台用的是.net C# 网上找了一个方法。下载地址:https://download.csdn.net/download/wqs15192095633/11650169原创 2019-09-03 09:44:43 · 490 阅读 · 0 评论 -
.net C# 文件下载(所有类型)
后台接收方法下载[HttpGet]public async Task export(string url, string name){try{string path = System.Web.HttpContext.Current.Server.MapPath(url);if (!string.IsNullOrWhiteSpace(path) && File.Exis...原创 2019-07-17 20:42:12 · 591 阅读 · 0 评论 -
.net HttpWebRequest get数据乱码解决方法。
转载 https://blog.csdn.net/qq_26422355/article/details/82716824原因是默认转为Unicode 转一下 Unicode2String 即可。/// /// /// 字符串转Unicode/// /// 源字符串/// Unicode编码后的字符串public static string String2Unicode(strin...转载 2019-06-27 09:07:01 · 726 阅读 · 0 评论 -
asp.net C# 微信小程序退款通知代码的坑
设置完回调后req_info解密代码C#官方没提供!string req_info = DecodeReqInfo(notifyData.GetValue(“req_info”).ToString());if (req_info == null){res.SetValue(“return_code”, “FAIL”);res.SetValue(“return_msg”, “解密信息出错...原创 2019-05-24 09:15:30 · 1645 阅读 · 0 评论 -
微信小程序C# 服务通知多个时候慢解决方法
地址是接口地址 https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=优化代码和多线程,我服务器不行。.net 4.0后 用 ParallelLoopResult result = Parallel.For(0, 1000, i =>{Console.WriteLine(“迭代次数:{0}...原创 2019-05-24 09:05:45 · 380 阅读 · 0 评论 -
在多线程里面使用HttpContext.Current,HttpContext.Current是得到null的获取路径方法
原因:20150703 解释下为什么当前请求上下文会为null,因为多线程情况下,当前线程可能并非http请求处理线程,根本没发生请求,所以无法获取到HttpContext就是null.public static string MapPath(string strPath){if (HttpContext.Current != null){return HttpContext.Curre...原创 2019-05-23 22:54:18 · 563 阅读 · 0 评论