# binary

fun binary(name: String): Column<ByteArray>

Creates a binary column, with the specified name, for storing byte arrays of arbitrary size.

Note: This function is only supported by Oracle, PostgeSQL, and H2 dialects. For the rest, please specify a length. For H2 dialects, the maximum size is 1,000,000,000 bytes.

#### Samples

org.jetbrains.exposed.sql.tests.shared.DDLTests.testBinaryWithoutLength

fun binary(name: String, length: Int): Column<ByteArray>

Creates a binary column, with the specified name, for storing byte arrays with the specified maximum length.

#### Samples

org.jetbrains.exposed.sql.tests.shared.DDLTests.testBinary