Exemplo n.º 1
0
        private void ShowContent(DataRow row)
        {
            string contexts = "";

            if (row["CONTENT"] != null && row["CONTENT"] != DBNull.Value)
            {
                // byte[] value = Convert.FromBase64String(row["CONTENT"].ToString());
                byte[] value = (byte[])row["CONTENT"];
                ////读取blob
                //contexts = Encoding.Default.GetString(value);
                //contexts = Convert.ToBase64String(value);
                contexts = Encoding.Unicode.GetString(value);
                //解密Blob的字符串

                contexts = DesSecurity.Decrypt(contexts); //StringHelper.Base64Decode(contexts);//
            }

            string contextsCopy = contexts;
            string AcsAddress   = ApplicationConfiguration.AcsAddress;

            contextsCopy = contextsCopy.Replace("../upload/", AcsAddress + "/upload/");

            lbDrugName.Text = txtKeyWords.Text;

            SetContext(contextsCopy);
        }
Exemplo n.º 2
0
 static WSHelper()
 {
     try
     {
         //»ñÈ¡WebServiceÃÜÂë
         SPassword = System.Configuration.ConfigurationManager.AppSettings["WSPassword"].ToString();
         SPassword = DesSecurity.Decrypt(SPassword);
     }
     catch
     { }
 }
Exemplo n.º 3
0
 static WSInfo()
 {
     WsURL     = System.Configuration.ConfigurationManager.AppSettings["WSAddress"].ToString();
     SPassword = System.Configuration.ConfigurationManager.AppSettings["WSPassword"].ToString();
     SPassword = DesSecurity.Decrypt(SPassword);
 }