Loading an image from a different directory than the application is running
Posted: Tue Jun 01, 2021 11:38 pm
I am trying to use annotationViewer1.get_Images().openFile(filename, fileLoadComplete, fileLoadError);
to load an image. As long as filename is under the application base folder (c:\inetpub\wwwroot\sitename\Images\image1.png), it works fine. How can I load an image from a different filepath, such as a completely different drive (e:\Images\image1.png)?
If I try passing the full filepath "e:\Images\image1.png" to the openFile() method it gives an error: "The given path's format is not supported".
to load an image. As long as filename is under the application base folder (c:\inetpub\wwwroot\sitename\Images\image1.png), it works fine. How can I load an image from a different filepath, such as a completely different drive (e:\Images\image1.png)?
If I try passing the full filepath "e:\Images\image1.png" to the openFile() method it gives an error: "The given path's format is not supported".