ADO 읽기 방법
❮ 전체 스트림 개체 참조
Read 메서드는 이진 Stream 개체에서 전체 스트림 또는 지정된 바이트 수를 읽고 결과 데이터를 변형으로 반환하는 데 사용됩니다.
참고: 이 메서드는 이진 Stream 개체에만 사용되며, 텍스트 Stream 개체의 경우 ReadText 메서드를 사용합니다.
통사론
var=objStream.Read numbytes
Parameter | Description |
---|---|
numbytes | Optional. The number of bytes to read from the file,
or a StreamReadEnum value. Default is adReadAll
If you have specified more than the number of bytes left in the Stream, only the bytes remaining are returned. |
StreamReadEnum 값
Constant | Value | Description |
---|---|---|
adReadAll | -1 | Default. Reads all bytes from the stream, from the
current position to EOS.
Note: This is the only valid value with binary Stream objects |
❮ 전체 스트림 개체 참조