阿修--一直在自我修炼,希望能得到百年道行

湖南微软开发者俱乐部

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
string  encodeStr = System.Convert.ToBase64String(buf);
int subCount = encodeStr.Length/76 + 1;
     string[] temp = new string[subCount];
     for(int i=0;i<subCount;i++)
     {
      if (i==subCount-1)
      {
       temp[i] = SGIP_EncodeStr.Substring(i*76,SGIP_EncodeStr.Length-i*76) + "\n";
      }
      else
      {
       temp[i] = SGIP_EncodeStr.Substring(i*76,76) + "\n";
      }
     }
     encodeStr = string.Join("",temp);
posted on 2007-04-20 23:10  阿修  阅读(1191)  评论(1编辑  收藏  举报