L_LTDIC_API L_BOOL L_DicomGetBinaryValue2(hDS, pElement, pValue, nOffset, nLength)
a DICOM handle
pointer to a DICOMELEMENT structure
pointer to a buffer
offset in the buffer to begin
length of the buffer
Updates a buffer with a binary value.
A DICOM handle.
Pointer to a DICOMELEMENT structure within the Data Set.
Buffer that will be updated with the value of the binary value associated with the specified item in the Data Set. You are responsible for allocating the memory for this buffer.
Offset, in bytes, to the start position in the buffer where the data will be written.
Length, in bytes, of the buffer you allocated.
The function is able to update the buffer with the binary value.
The function cannot update the buffer with a binary value.
Note: You must allocate the memory for
The DICOMELEMENT structure has a member also called
nLength. If this
nLength value is greater than the
nLength of the buffer you allocated (
pValue), then the binary value copied into
pValue will be truncated to the smaller length. If the
nLength of the
DICOMELEMENT is shorter than the
pValue, the entire binary value associated with the
DICOMELEMENT will be copied into
This function can be called for every Value Representation, and it will return the exact value in the Value Field (unconverted).
Required DLLs and Libraries
Win32, x64, Linux.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries