- System.Runtime.Serialization.Formatters.Binary.BinaryFormatter bf = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
- MemoryStream mr = new MemoryStream();
bf.Serialize(mr, strCode); - byte[] bt = mr.GetBuffer();
assign this bt to the param.Value to be passed to the sqlhelper.