Freigeben über


IBlob.SetBinaryStream(Int64) Method

Definition

Retrieves a stream that can be used to write to the BLOB value that this Blob object represents.

[Android.Runtime.Register("setBinaryStream", "(J)Ljava/io/OutputStream;", "GetSetBinaryStream_JHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public System.IO.Stream? SetBinaryStream (long pos);
[<Android.Runtime.Register("setBinaryStream", "(J)Ljava/io/OutputStream;", "GetSetBinaryStream_JHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetBinaryStream : int64 -> System.IO.Stream

Parameters

pos
Int64

the position in the BLOB value at which to start writing; the first position is 1

Returns

a java.io.OutputStream object to which data can be written

Attributes

Exceptions

if an error occurs accessing the Blob.

Remarks

Retrieves a stream that can be used to write to the BLOB value that this Blob object represents. The stream begins at position pos. The bytes written to the stream will overwrite the existing bytes in the Blob object starting at the position pos. If the end of the Blob value is reached while writing to the stream, then the length of the Blob value will be increased to accomodate the extra bytes.

<b>Note:</b> If the value specified for pos is greater then the length+1 of the BLOB value then the behavior is undefined. Some JDBC drivers may throw a SQLException while other drivers may support this operation.

Added in 1.4.

Java documentation for java.sql.Blob.setBinaryStream(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to