常建57

路漫漫其修远兮。。。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

It's hard to find some samples about the convertion between string and BlobColumn.AddBlobData.

It's 太坑人了

 

1.convert  BlobColumn to string.  (Get user name from  BlobColumn type data)

  

    public override void Input0_ProcessInputRow(Input0Buffer Row)
    {
        string userName = Encoding.Unicode.GetString(Row.UserName.GetBlobData(0, Convert.ToInt32(Row.UserName.Length)));
    }

 

 

2. Convert string to  BlobColumn. (add user name to BlobColumn type)

  

    public override void Input0_ProcessInputRow(Input0Buffer Row)
    {
        Row.Out_UserName.AddBlobData(Encoding.Unicode.GetBytes(UserName));

    }

 

alert("不用谢,记得我叫迎风一刀劈就行了");

  

posted on 2014-09-12 15:35  常建57  阅读(199)  评论(0编辑  收藏  举报