Método ADO CopyTo
❮ Referência Completa do Objeto Stream
O método CopyTo é usado para copiar um número especificado de caracteres ou bytes de um objeto Stream aberto para outro objeto Stream aberto.
O tipo dos dois objetos Stream deve ser o mesmo. No entanto, objetos Stream de texto podem ser copiados em objetos Stream binários, mas não vice-versa, e a propriedade CharSet do objeto Stream de destino pode ser diferente do objeto Stream de origem.
Sintaxe
objStream.CopyTo dest,numchars
Parameter | Description |
---|---|
dest | Required. Where to copy the Stream (contains a reference to an open Stream object) |
numchars | Optional. An integer that specifies the number of characters
or bytes to be copied from the current position in the source Stream to
the destination Stream. Default is -1 (will copy all data from the current position to
EOS)
Note: If the specified number is greater than the available number of bytes/characters until EOS, then only bytes/characters from the current position to EOS are copied |
❮ Referência Completa do Objeto Stream