Java.Sql.IPreparedStatement.SetBinaryStream Method
Sets the value of a specified parameter to the content of a supplied binary InputStream, which has a specified number of bytes.

Syntax

[Android.Runtime.Register("setBinaryStream", "(ILjava/io/InputStream;I)V", "GetSetBinaryStream_ILjava_io_InputStream_IHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetBinaryStream (int parameterIndex, System.IO.Stream theInputStream, int length)

Parameters

parameterIndex
the parameter number index, where the first parameter has index 1.
theInputStream
the binary InputStream carrying the data to update the parameter.
length
the number of bytes in the InputStream to copy to the parameter.

Exceptions

TypeReason
Java.Sql.SQLExceptionif a database error happens.

Remarks

Sets the value of a specified parameter to the content of a supplied binary InputStream, which has a specified number of bytes.

Use this method when a large amount of data needs to be set into a LONGVARBINARY parameter.

[Android Documentation]

Requirements

Namespace: Java.Sql
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1