[#BloombergLP-bdlbb-BlobUtil-read]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobUtil.adoc[BlobUtil]::read
:relfileprefix: ../../../
:mrdocs:

Read bytes from a stream into a blob&period;

== Synopsis

Declared in `&lt;bdlbb&lowbar;blobutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
static
STREAM&
read(
    STREAM& stream,
    xref:BloombergLP/bdlbb/Blob.adoc[Blob]* dest,
    int numBytes);
----

== Description

Read the specified `numBytes` from the specified `stream` and load it into the specified `dest`, and return a reference to the modifiable `stream`&period;

== Return Value

reference to the modifiable `stream`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| input stream
| *dest*
| destination blob
| *numBytes*
| number of bytes to read
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
