예제 #1
0
파일: CAServices.cs 프로젝트: Wooyme/HIS-1
        public Image GetUserPicture(string strCertId, string strSealId)
        {
            //印章BASE64串
            string imageBase64 = _seal.SOF_GetKeyPicture("");

            if ("".Equals(imageBase64))
            {
                throw new Exception("获取图片信息失败!");
            }
            byte[] imgBytes = Convert.FromBase64String(imageBase64);
            System.IO.MemoryStream memoryStream = new System.IO.MemoryStream(imgBytes);
            Image image = Image.FromStream(memoryStream);

            return(image);
        }
예제 #2
0
 /// <summary>
 /// 获取印章图片
 /// </summary>
 /// <param name="sealId">印章标识</param>
 /// <returns>印章图片BASE64串</returns>
 public string GetKeyPicture(string sealId)
 {
     return(seal.SOF_GetKeyPicture(sealId));
 }