CommandBehavior.SequentialAccess方式读取BLOB字段是不是只能顺序读?
fwc 2010-09-30 02:15:11 reader.GetBytes(3, 0, data, 0, 38);
reader.GetBytes(3, 38, data, 0, 4);
//reader.GetBytes(3, 42, data, 0, 1);//注解掉这句编译就不通过
reader.GetBytes(3, 43, origDataBuff, 0, dataLength * 24);
运行异常为在 dataIndex“43”处的 GetBytes 尝试无效。通过 CommandBehavior.SequentialAccess 只能从“42”或更大的 dataIndex 处读取。
可是我是从43开始读取,满足大于42的条件,不是很理解这个错误。
但是将注解的语句恢复,一切正常。是不是读取流必须顺序依次读取呢?