putting a tag into a file
Moderator: Moderator Team
-
- Posts: 8
- Joined: Tue, 2017-10-10, 09:44
putting a tag into a file
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?
-
- DCMTK Developer
- Posts: 2054
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: putting a tag into a file
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
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
-
- Posts: 8
- Joined: Tue, 2017-10-10, 09:44
Re: putting a tag into a file
Hi
Regards
Hafiz
It worked. Thanks a lot Michael.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
Regards
Hafiz
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot] and 1 guest