Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

BlobMid – PB Docs 150 – PowerBuilder Library

BlobMid – PB Docs 150

BlobMid PowerScript function

Description

Extracts data from a blob variable.

Syntax

Argument

Description

data

Data of the blob datatype

n

The number (1 to 4,294,967,295) of the
first byte you want returned

length (optional)

The number of bytes (1 to 4,294,967,295)
you want returned

Return Values

Blob. Returns length bytes from data starting
at byte n. If n is greater
than the number of bytes in data, BlobMid returns
an empty blob. If together length and n add
up to more bytes than the blob contains, BlobMid returns
the remaining bytes, and the returned blob will be shorter than
the specified length. If any argument’s value is null, BlobMid returns null.

note.png Include terminator character

String variables contain a zero terminator, which accounts
for one byte. Include the terminator character when calculating
how much data to extract.

Examples

In this example, the first call to BlobMid stores
10 bytes of the blob datablob starting at position
5 in the blob data_1; the second call
stores the bytes of datablob from position 5 to the end in data_2:

This code copies a bitmap in the blob emp_photo starting
at position 1, stores the position at which the next copy can begin
in nbr, and then copies a date into the blob emp_photo after
the bitmap data. Then, using the date’s start position, it
extracts the date from the blob and displays it in the StaticText st_1:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x