Main Content



Save next buffer of data to file for FileConsumer


[size,stop] = putData(consumer,data)


[size,stop] = putData(consumer,data) stores the next buffer of data read from the server, writes data to the file, and returns the number of bytes written. This method is an overridden method of putData called by MATLAB®.

Input Arguments

expand all

Content consumer, specified as a object.

Buffer of raw data in a object, specified as a nonempty uint8 vector, uint8.empty, or []. For more information about these values, see the data input argument for the ContentConsumer.putData method.

Output Arguments

expand all

Number of bytes written to the file, returned as double or empty double. For more information, see the size argument in putData.

Indicate whether to receive further data from this message, returned as true or false. For more information, see the stop argument in ContentConsumer.putData.



Version History

Introduced in R2018a

See Also