Returns the URL of the image with the specified SOP Instance UID.
public string GetImage(string sopInstanceUID)
Public Function GetImage( _ByVal sopInstanceUID As String _) As String
public:String^ GetImage(String^ sopInstanceUID)
sopInstanceUID
The SOP Instance UID of the image to be retrieved
This sample does the following:
using Leadtools;using Leadtools.Examples;using Leadtools.Medical.WebViewer.ExternalControl;private void MedicalWebViewerExternalController_GetImage(){string applicationName;string version;int externalControlPort = 500;// Username a password to log in// This will be the username and password that you created when running the CSPacsDatabaseConfig.exe demostring username = "bob";string password = "bob";// These are the UIDs of datasets that are preinstalled in the CSStorageServerMananger.exe demo databaseconst string jonesSopInstanceUid = "1.2.392.200036.9107.500.305.5577.20090211.93715.105577";MedicalWebViewerExternalController controller = new MedicalWebViewerExternalController("http://localhost/MedicalViewer");controller.Timeout = 30;controller.InitApplication(out applicationName, out version, externalControlPort);controller.SelectedBrowser = MedicalWebViewerBrowser.GoogleChrome;ControllerReturnCode ret = controller.UserLogin(username, password);string imageUrl = controller.GetImage(jonesSopInstanceUid);if (!string.IsNullOrEmpty(imageUrl)){string sMsg = string.Format("Retrieving SOPInstanceUID '{0}'.\n\nPaste the URL in browser to see the image: \n\n\t{1}.", jonesSopInstanceUid, imageUrl);MessageBox.Show(sMsg);}controller.CloseApplication();// Shutdown the command queuecontroller.Shutdown();}
Imports LeadtoolsImports Leadtools.ExamplesImports Leadtools.Medical.WebViewer.ExternalControlPrivate Sub MedicalWebViewerExternalController_GetImage()Dim applicationName As StringDim version As StringDim externalControlPort As Integer = 500' Username a password to log in' This will be the username and password that you created when running the CSPacsDatabaseConfig.exe demoDim username As String = "bob"Dim password As String = "bob"' These are the UIDs of datasets that are preinstalled in the CSStorageServerMananger.exe demo databaseConst jonesSopInstanceUid As String = "1.2.392.200036.9107.500.305.5577.20090211.93715.105577"Dim controller As New MedicalWebViewerExternalController("http://localhost/MedicalViewer")controller.Timeout = 30applicationName = String.Emptyversion = String.Emptycontroller.InitApplication(applicationName, version, externalControlPort)controller.SelectedBrowser = MedicalWebViewerBrowser.GoogleChromeDim ret As ControllerReturnCode = controller.UserLogin(username, password)Dim imageUrl As String = controller.GetImage(jonesSopInstanceUid)If (Not String.IsNullOrEmpty(imageUrl)) ThenDim sMsg As String = String.Format("Retrieving SOPInstanceUID '{0}'." & Constants.vbLf + Constants.vbLf, jonesSopInstanceUid)sMsg += String.Format("Paste the URL in browser to see the image: " & Constants.vbLf + Constants.vbLf + Constants.vbTab & "{1}.", imageUrl)MessageBox.Show(sMsg)End Ifcontroller.CloseApplication()' Shutdown the command queuecontroller.Shutdown()End Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
