Receive and query DICOM data

Is it attached to the received DICOMdata?
I want to return original data to modality again.

Not quite sure to understand your question, but please note DCMTK is indeed embedded in Orthanc.