能否用程序判斷兩張圖片的內容是相同的呢

    技术2022-05-11  77

    FileStream  fs=new FileStream(strFullPath,FileMode.Open,FileAccess.Read);   

       System.IO.FileInfo fi=new FileInfo(strFullPath);   byte[] bytArr=new byte[Convert.ToInt32(fi.Length)];   fs.Read(bytArr,0,Convert.ToInt32(fi.Length));

       fs.Close();   StringBuilder sb=new StringBuilder();   for(int i=0;i<bytArr.Length;i++)   {    sb.Append(bytArr[i].ToString());   }   return FormsAuthentication.HashPasswordForStoringInConfigFile(sb.ToString(),"MD5"); 


    最新回复(0)