Infopath XML read and write
2009-12-25 15:19
447 查看
1.SHLF
Stream source = properties.ListItem.File.OpenBinaryStream();
byte[] buffer = new byte[source.Length];
source.Read(buffer, 0, (Int32)source.Length);
String filecontent=Encoding.UTF8.GetString(buffer);
filecontent = filecontent.Replace("LFSH00001", GetLatestID());
byte[] dest = Encoding.UTF8.GetBytes(filecontent);
properties.ListItem.File.SaveBinary(dest);
Stream source = properties.ListItem.File.OpenBinaryStream();
byte[] buffer = new byte[source.Length];
source.Read(buffer, 0, (Int32)source.Length);
String filecontent=Encoding.UTF8.GetString(buffer);
filecontent = filecontent.Replace("LFSH00001", GetLatestID());
byte[] dest = Encoding.UTF8.GetBytes(filecontent);
properties.ListItem.File.SaveBinary(dest);
相关文章推荐
- How To Read and Write XML Documents with GDataXML
- How To Read and Write XML Documents with GDataXML
- Qt Write and Read XML File 读写XML文件
- opencv xml read and write
- csharp read execl and write xml
- Read and Write XML
- (转载)XML Tutorial for iOS: How To Read and Write XML Documents with GDataXML
- read and write binary xml
- Qt Write and Read XML File 读写XML文件
- How To Read and Write XML Documents with GDataXML
- How To Read and Write XML Documents with GDataXML(使用GData读写XML文档)
- QT之write and read
- C# read xml from a string and performance test
- IO read and write. demo
- READ Write xml
- file read and write use java
- Java read and write csv file(注意事项)
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- write and read