Main Content

getData

Class: matlab.net.http.io.FileProvider
Namespace: matlab.net.http.io

Next buffer of data to send in HTTP request message from FileProvider

Syntax

[data,stop] = getData(provider,length)

Description

[data,stop] = getData(provider,length) returns the next buffer of data from the file. This method is an overridden method of getData.

Input Arguments

expand all

Content provider, specified as a matlab.net.http.io.FileProvider object.

Length of data that the provider should return, specified as double. For more information, see the length argument in ContentProvider.getData.

Output Arguments

expand all

Next buffer of data, returned as a uint8 vector or empty.

Indicate whether to end transmission, returned as a logical that the provider must set. getData sets stop to true if the end of file has been reached or FileSize bytes have been returned, whichever comes first.

Attributes

Accesspublic

Version History

Introduced in R2018a

See Also