首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >fo-dicom C-Move查询不调用CStoreRequestCallback

fo-dicom C-Move查询不调用CStoreRequestCallback
EN

Stack Overflow用户
提问于 2020-12-13 11:54:03
回答 1查看 161关注 0票数 2

var client =新的DicomClient();

代码语言:javascript
复制
        var pcs = DicomPresentationContext.GetScpRolePresentationContextsFromStorageUids(
            DicomStorageCategory.Image,
            DicomTransferSyntax.ExplicitVRLittleEndian,
            DicomTransferSyntax.ImplicitVRLittleEndian,
            DicomTransferSyntax.ImplicitVRBigEndian);
        client.AdditionalPresentationContexts.AddRange(pcs);

        DicomDataset dataset = null;
        client.OnCStoreRequest = request =>
        {
            dataset = request.Dataset;
            return new DicomCStoreResponse(request, DicomStatus.Success);
        };

       
        var get = new DicomCMoveRequest(QRServer,
            StudyId,
            SeriesUd);


        var handle = new ManualResetEventSlim();
        get.OnResponseReceived = (request, response) =>
        {
            handle.Set();
        };
        client.AddRequest(get);
        client.Send(ipAddress, 104, false, AEClient, QRServer);
        handle.Wait();
        Thread.Sleep(10000);

在上面的代码片段中,如果AEClient和QRServer是相同的/same AETitle,则CMoveResponse成功,但没有获得任何CStoreRequest

如果AEClient和QRServer不同,则会出现类似Move destination Unknown的错误

EN

回答 1

Stack Overflow用户

发布于 2020-12-18 02:16:50

如何请求数据有几种DICOM协议:C-GetC-Move。它们的行为完全不同。下面是一个很好的解释:https://saravanansubramanian.com/dicomtutorials/

C-Move请求告诉服务器将图像发送到新关联中的特定AETitle ( MoveDestination)。因此,您必须启动一个新的StoreSCP服务器实例才能接收图像。因此,服务器当然必须知道AETitle,因为根据MoveDestination,服务器也必须知道IP和端口。

另一方面,C-Get返回相同交互上的数据。在这种情况下,您将调用OnCStoreRequestCallback。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65272201

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档