笔记直接代码
核心代码
byte[] data = Array.Empty<byte>();
while (reader.Read())
{
long len = reader.GetBytes(reader.GetOrdinal("PRPD"), 0, null, 0, 0);
byte[] buffer = new byte[len];
len = reader.GetBytes(reader.GetOrdinal("PRPD"), 0, buffer, 0, (int)len);
data = buffer;
}
OK,结束
评论 (0)