The PDF content in encapsulated PDF is in DicomTags.EncapsulatedDocument DICOM TAG. It is a UINT type. What streamwriter shoudl I use to save the UINT in file?
I wrote following code:
using (FileStream stream = new FileStream("C:\\mysecretfile.pdf", FileMode.Create))
{
using (XXX writer = new XXX())
{
writer.Write(dcm.DataSet[DicomTags.EncapsulatedDocument]);
writer.Close();
}
}