在HealthVault中存储图像 [英] store a image in HealthVault

查看:90
本文介绍了在HealthVault中存储图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过获取本地系统中的图像路径将图像上传到HealthVault中。但现在我需要通过从URL提供图像路径来在HealthVault中存储图像。能否请您提供示例代码来完成此操作。

I uploaded the images in HealthVault by getting the image path in the local system. But now i need to store a image in HealthVault by giving the image path from the URL. Can you please provide me the Sample code to done this.

推荐答案

您好Shanmugapriya,

Hello Shanmugapriya,

您可以使用下面的示例代码,使用在线连接模式将图像更新到HealthVault

You can use the below sample code to updload the images to HealthVault by using online connection mode

            Microsoft.Health.ItemTypes.File file = new Microsoft.Health.ItemTypes.File();

            string path = @" E:\sample.jpg" ;;

            file.SetContent(path,new CodableValue(" image / jpg"));

            file.CommonData.Note =" New file";    


      

          

            PersonInfo.SelectedRecord.NewItem(file);

            Microsoft.Health.ItemTypes.File file = new Microsoft.Health.ItemTypes.File();
            string path = @"E:\sample.jpg";
            file.SetContent(path, new CodableValue("image/jpg"));
            file.CommonData.Note="New file";    
      
          
            PersonInfo.SelectedRecord.NewItem(file);

 

 如果您使用离线连接,请查看此主题" http://social.msdn.microsoft.com/Forums/en-US/healthvault/thread/3653346b-a7f6-43cc-9f6e-e6a553bb8415/
"有关详细信息。

 If you are using Offline connection please look into this thread "http://social.msdn.microsoft.com/Forums/en-US/healthvault/thread/3653346b-a7f6-43cc-9f6e-e6a553bb8415/ " for more information.

您可以在本文中查看HealthVault中的Blob用法" http ://blogs.msdn.com/b/healthvault/archive/2009/06/10/upcoming-changes-in-0906-release.aspx
"。

You can look into the Blob usage in HealthVault in in this post "http://blogs.msdn.com/b/healthvault/archive/2009/06/10/upcoming-changes-in-0906-release.aspx ".

您还可以在本文中查看HealthVault中的医学成像" http://blogs.msdn.com/b/healthvault/archive/2009/ 12月4日,他/她althvault-and-medical-imaging.aspx
"。

You can also look into the Medical imaging in HealthVault in this Post "http://blogs.msdn.com/b/healthvault/archive/2009/12/04/healthvault-and-medical-imaging.aspx ".

希望这有帮助,如果您需要进一步的帮助,请告诉我。

Hope this helps and let me know if you need further help.

问候,

Madan Kamuju

Madan Kamuju


这篇关于在HealthVault中存储图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆