How to send images by Dicom dataset #1710
foroughi9300
started this conversation in
General
Replies: 1 comment 2 replies
-
I wonder what's the content of |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Mehdi Foroughi's profile photo
Mehdi Foroughi
11:27 AM (1 minute ago)
to Fellow Oak DICOM
Hello,
I am reading a dicomdir file. Then I save all the datasets corresponding to each file. Then I create a DicomCStoreRequest for each dataset and add it to a list and the list of requests to a dicom client and send:
List cStoreRequestsList = new List();
for (int i = 0; i < dicomDatasetList.Count; i++)
{
DicomDataset ds = dicomDatasetList[i];
DicomCStoreRequest storeReq = new DicomCStoreRequest(ds) ;
cStoreRequestsList.Add(storeReq);
}
var client = new Dicom.Network.Client.DicomClient("127.0.0.1", 104, false, "MyAE", "CalledAe");
await client.AddRequestsAsync(cStoreRequestsList.ToArray());
await client.SendAsync();
but I get different kind of errors.
How can I send dicom datasets instead of sending dicom files?
Beta Was this translation helpful? Give feedback.
All reactions