if (ff.FileMetaInfo.MediaStorageSOPClassUID == DicomUID.EncapsulatedPDFStorage && ff.Dataset.Contains(DicomTags.EncapsulatedDocument))
{
byte[] Buffer = new byte[ff.Dataset.GetOB(DicomTags.EncapsulatedDocument).Length];
Buffer = ff.Dataset.GetOB(DicomTags.EncapsulatedDocument).GetValues(); FileStream CreatePdf = new FileStream(ff.Dataset.GetUI(DicomTags.SOPInstanceUID).GetValueString() + ".pdf", FileMode.Create);
CreatePdf.Write(Buffer, 0, Buffer.Length);
CreatePdf.Close(); System.Diagnostics.Process proc;
proc = Process.Start(CreatePdf.Name);
}
raise
I don't understand: DicomDataset accpt bytes()??