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

Syntax

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

Parameters

parameterIndex
the parameter number index, where the first parameter has index 1.
theInputStream
the ASCII InputStream carrying the data to which the parameter at parameterIndex is set.
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 InputStream, which has a specified number of bytes.

This is a good method for setting an SQL LONGVARCHAR parameter where the length of the data is large. Data is read from the InputStream until end-of-file is reached or the specified number of bytes is copied.

[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