Official Content

Reads data from a response flow in chunks.

Syntax

&DataType.ReadChunk()

Type Returned:
String

Where:
&DataType
     Variable name based on an HttpClient data type.

Description

Returns a string representing a chunk of data read from the service response flow.

The ReadChunk method allows incremental reading of data from the service response flow. 

Each call to this method retrieves a chunk of data from the flow. If the flow still has data available, subsequent calls will retrieve new chunks until the end of the flow is reached.

To check if there are any chunks left to read from the response flow, you can use the EOF Property.

Scope

Extended data types: HttpClient
Generators: Java.NET Framework.NETAngular

Availability

This method is available since GeneXus 18 Upgrade 7.

See Also

Reading and writing chunked responses

 

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant