From a80860d1900d0dc8863b1bdf3d947032ca1fb366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E9=99=90=E9=A3=8E=E7=81=B5?= <827937686@qq.com> Date: Wed, 15 May 2019 11:52:25 +0800 Subject: [PATCH] =?UTF-8?q?int=E5=BC=BA=E5=88=B6=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2long?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 引发异常 --- FastDFS/Storage/UPLOAD_FILE.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FastDFS/Storage/UPLOAD_FILE.cs b/FastDFS/Storage/UPLOAD_FILE.cs index 8bd930d..b5e3139 100644 --- a/FastDFS/Storage/UPLOAD_FILE.cs +++ b/FastDFS/Storage/UPLOAD_FILE.cs @@ -61,7 +61,8 @@ public override FDFSRequest GetRequest(params object[] paramList) IPEndPoint endPoint = (IPEndPoint)paramList[0]; byte storePathIndex = (byte)paramList[1]; - long fileSize = (long)paramList[2]; + //long fileSize = (long)paramList[2]; //会引发"指定的转换无效" + long fileSize = Convert.ToInt64(paramList[2]); string ext = (string)paramList[3]; Stream stream = paramList[4] as Stream;