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

ReadData – PB Docs 2022 – PowerBuilder Library

ReadData – PB Docs 2022

ReadData

PowerScript function

Description

Reads the response body.

Applies to

HTTPClient
objects

Syntax

Argument

Description

objectname

The name of the HTTPClient object for which you want to
read the response body.

data

A blob value into which the function returns data.

bufferSize

A long value specifying the buffer size.

Usage

When the data is returned in the gzip or brotli format (with the
response header “Content-Encoding: gzip” or “Content-Encoding: br”), the
data will be automatically extracted in this function.

Return value

Integer.

Returns values as follows. If any argument’s value is null, the
method returns null.

1 — Success

0 — Reading data is finished

-1 — General error

-2 — Timed out

-3 — Failed to decompress data.

Example 1

Example 2

This example demonstrates how to get large data (over 20 MB):


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