getting status “Pending” and after a moment “Success” In C-Move Method.

147 views
Skip to first unread message

Vinay Rathore

unread,
Jan 30, 2015, 9:53:41 AM1/30/15
to fo-d...@googlegroups.com

 how i can save the dicom in path @"C\DICOM";

   after getting success response, dicom is not save in  path @"C\DICOM ?

 

static string StoragePath = @"C\DICOM";

   static void Main(string[] args)

        {

            var dict = DicomDictionary.Default;

            var server = new DicomServer<CStoreSCP>(11112);

            DicomClient client = new DicomClient();

 

            DicomCMoveRequest request = new DicomCMoveRequest("DCM4CHEE", "1.2.840.113745.101000.1008000.38046.4274.5925160", "1.3.12.2.1107.5.2.5.11090.5.0.5823657848275436");

            request.OnResponseReceived = MoveDelegate;

 

            client.NegotiateAsyncOps(2, 0);

            client.AddRequest(request);

            try

            {

                client.Send("172.16.6.151", 11112, false, "DCMNET", "DCM4CHEE");

                Console.WriteLine("C-Move request to");

 

            }

            catch (Exception ex)

            {

                Console.WriteLine("Failure sending C-Move request to");

            }

        }

 

  public static void MoveDelegate(DicomCMoveRequest request, DicomCMoveResponse response)

        {

            Console.WriteLine(String.Format("CMove response ({0}) {1} : Status={2}, TransferSyntax ({3}) {4}",

                response.SOPClassUID.Name, response.SOPClassUID.UID, response.Status.Description,

                response.Command.InternalTransferSyntax, response.Command.InternalTransferSyntax.UID.UID));

        }

 

Helder Pinhal

unread,
Feb 18, 2015, 6:26:07 AM2/18/15
to fo-d...@googlegroups.com
I am new to DICOM and fo-dicom but from what I understand, the server will send you responses for each image you are requesting with the DicomStatus.Pending and when the request has been fully handled, it will issue another response with an empty DicomDataset and DicomStatus.Success.
Reply all
Reply to author
Forward
0 new messages