[#BloombergLP-bdlbb-BlobUtil-write-0c6] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobUtil.adoc[BlobUtil]::write :relfileprefix: ../../../ :mrdocs: Write to the specified `stream` the specified `numBytes` starting at the specified `sourcePosition` in the specified `source` blob. Return 0 on success or a non‐zero value otherwise. Note that this function will fail (immediately) if the length of `source` is less than `numBytes`; or if there is any error writing to `stream`. == Synopsis Declared in `<bdlbb_blobutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> static int write( STREAM& stream, xref:BloombergLP/bdlbb/Blob.adoc[Blob] const& source, int sourcePosition, int numBytes); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#