ICallableStatement.GetBytes Method

Definition

Overloads

GetBytes(String)

Retrieves the value of a JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.

GetBytes(Int32)

Retrieves the value of the designated JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.

GetBytes(String)

Retrieves the value of a JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.

[Android.Runtime.Register("getBytes", "(Ljava/lang/String;)[B", "GetGetBytes_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public byte[]? GetBytes (string? parameterName);
[<Android.Runtime.Register("getBytes", "(Ljava/lang/String;)[B", "GetGetBytes_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetBytes : string -> byte[]

Parameters

parameterName
String

the name of the parameter

Returns

Byte[]

the parameter value. If the value is SQL NULL, the result is null.

Attributes

Exceptions

if a database error occurs.

Remarks

Retrieves the value of a JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.

Added in 1.4.

Java documentation for java.sql.CallableStatement.getBytes(java.lang.String).

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

GetBytes(Int32)

Retrieves the value of the designated JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.

[Android.Runtime.Register("getBytes", "(I)[B", "GetGetBytes_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public byte[]? GetBytes (int parameterIndex);
[<Android.Runtime.Register("getBytes", "(I)[B", "GetGetBytes_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetBytes : int -> byte[]

Parameters

parameterIndex
Int32

the first parameter is 1, the second is 2, and so on

Returns

Byte[]

the parameter value. If the value is SQL NULL, the result is null.

Attributes

Exceptions

if a database error occurs.

Remarks

Retrieves the value of the designated JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.

Java documentation for java.sql.CallableStatement.getBytes(int).

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