Stay organized with collections Save and categorize content based on your preferences.
JdbcBlobA JDBC Blob
. For documentation of this class, see java.sql.Blob
.
free()
void
For documentation of this method, see java.sql.Blob#free()
. getAppsScriptBlob()
Blob
Gets the content of this JdbcBlob as an Apps Script blob. getAs(contentType)
Blob
Return the data inside this object as a blob converted to the specified content type. getBytes(position, length)
Byte[]
For documentation of this method, see java.sql.Blob#getBytes(long, int)
. length()
Integer
For documentation of this method, see java.sql.Blob#length()
. position(pattern, start)
Integer
For documentation of this method, see java.sql.Blob#position(byte[], long)
. position(pattern, start)
Integer
For documentation of this method, see java.sql.Blob#position(blob, long)
. setBytes(position, blobSource)
Integer
Convenience method for writing a JdbcBlob
to this blob. setBytes(position, blobSource, offset, length)
Integer
Convenience method for writing a JdbcBlob
to this blob. setBytes(position, bytes)
Integer
For documentation of this method, see java.sql.Blob#setBytes(long, byte[])
. setBytes(position, bytes, offset, length)
Integer
For documentation of this method, see java.sql.Blob#setBytes(long, byte[], int, int)
. truncate(length)
void
For documentation of this method, see java.sql.Blob#truncate(long)
. Detailed documentation getAppsScriptBlob()
Gets the content of this JdbcBlob as an Apps Script blob.
ReturnBlob
— A Blob
that can be used directly by other Apps Script APIs.
getAs(contentType)
Return the data inside this object as a blob converted to the specified content type. This method adds the appropriate extension to the filename—for example, "myfile.pdf". However, it assumes that the part of the filename that follows the last period (if any) is an existing extension that should be replaced. Consequently, "ShoppingList.12.25.2014" becomes "ShoppingList.12.25.pdf".
To view the daily quotas for conversions, see Quotas for Google Services. Newly created Google Workspace domains might be temporarily subject to stricter quotas.
Parameters Name Type DescriptioncontentType
String
The MIME type to convert to. For most blobs, 'application/pdf'
is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of 'image/bmp'
, 'image/gif'
, 'image/jpeg'
, or 'image/png'
are also valid. For a Google Docs document, 'text/markdown'
is also valid. Return
Blob
— The data as a blob.
getBytes(position, length)
For documentation of this method, see java.sql.Blob#getBytes(long, int)
.
position
Integer
The ordinal position of the first byte in the blob value to be extracted; the first byte is at position 1. length
Integer
The number of consecutive bytes to copy; the value for length must be zero or greater. Return
Byte[]
— A byte array containing up to the specified number of consecutive bytes from the blob value.
length()
For documentation of this method, see java.sql.Blob#length()
.
Integer
— The number of bytes in this blob.
position(pattern, start)
For documentation of this method, see java.sql.Blob#position(byte[], long)
.
pattern
Byte[]
The byte array to search for. start
Integer
The position in the blob value where to beging searching; the first position is 1. Return
Integer
— The position at which the specified pattern begins, or else -1 if the pattern is not found.
position(pattern, start)
For documentation of this method, see java.sql.Blob#position(blob, long)
.
pattern
JdbcBlob
The JdbcBlob
indicating the value to search for. start
Integer
The position in the blob value where to beging searching; the first position is 1. Return
Integer
— The position at which the specified pattern begins, or else -1 if the pattern is not found.
setBytes(position, blobSource)
Convenience method for writing a JdbcBlob
to this blob.
position
Integer
The position in the blob at which to start writing; the first position is 1. blobSource
BlobSource
The source of data to write to this blob. Return
Integer
— The number of bytes written.
setBytes(position, blobSource, offset, length)
Convenience method for writing a JdbcBlob
to this blob.
position
Integer
The position in the blob at which to start writing; the first position is 1. blobSource
BlobSource
The source of data to write to this blob. offset
Integer
The offset into the provided byte array at which to start reading bytes to set. length
Integer
The number of bytes to write to the blob. Return
Integer
— The number of bytes written.
setBytes(position, bytes)
For documentation of this method, see java.sql.Blob#setBytes(long, byte[])
.
position
Integer
The position in the blob at which to start writing; the first position is 1. bytes
Byte[]
The array of bytes to write to this blob. Return
Integer
— The number of bytes written.
setBytes(position, bytes, offset, length)
For documentation of this method, see java.sql.Blob#setBytes(long, byte[], int, int)
.
position
Integer
The position in the blob at which to start writing; the first position is 1. bytes
Byte[]
The array of bytes to write to this blob. offset
Integer
The offset into the provided byte array at which to start reading bytes to set. length
Integer
The number of bytes to write to the blob. Return
Integer
— The number of bytes written.
truncate(length)
For documentation of this method, see java.sql.Blob#truncate(long)
.
length
Integer
The size (in bytes) of this blob after truncation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["JdbcBlob is a JDBC object representing a BLOB (Binary Large Object) used to store large amounts of binary data in a database."],["It provides methods for accessing, manipulating, and converting the binary data within the BLOB."],["Several methods, such as `free()`, `getBytes()`, `length()`, `position()`, `setBytes()`, and `truncate()`, are based on the standard `java.sql.Blob` interface and are further documented there."],["`getAppsScriptBlob()` enables retrieving the content as an Apps Script Blob, facilitating interaction with other Apps Script APIs."],["`getAs()` allows for converting the BLOB data into different content types, such as PDF or images, subject to daily quotas."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4