putting a tag into a file

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Hafiz Rafeeq
Posts: 8
Joined: Tue, 2017-10-10, 09:44

putting a tag into a file

#1 Post by Hafiz Rafeeq » Tue, 2017-10-10, 11:03

I used MdfDatasetManager::modifyOrInsertFromFile to insert a file into a dicom tag. Now I want to retrieve the file from the tag. Is it possible to do it? Which class and function should I use for this?

Michael Onken
DCMTK Developer
Posts: 1708
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: putting a tag into a file

#2 Post by Michael Onken » Tue, 2017-10-10, 18:18

Hi,

you can use the related DcmItem methods, see details in the API documentation. If you inserted binary data (e.g. image data), you might try the findAndGetUint8Array() method. In general all the findAndGet...() methods list the DICOM data types (VRs) they work for. The dcmdata API start page shows how to open a file and get a value in general.

Best,
Michael

Hafiz Rafeeq
Posts: 8
Joined: Tue, 2017-10-10, 09:44

Re: putting a tag into a file

#3 Post by Hafiz Rafeeq » Wed, 2017-10-11, 06:25

Hi
Michael Onken wrote:Hi,

you can use the related DcmItem methods, see details in the API documentation. If you inserted binary data (e.g. image data), you might try the findAndGetUint8Array() method. In general all the findAndGet...() methods list the DICOM data types (VRs) they work for. The dcmdata API start page shows how to open a file and get a value in general.

Best,
Michael
It worked. Thanks a lot Michael.

Regards
Hafiz

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest