Wraps a URL as an ILeadStream object.
Public Shared Function FromUri(
ByVal uri As Uri
) As Task(Of ILeadStream)
Uri containing the path to the remote resource. This value will be set into the HttpClientLeadStream.Uri property.
This method will create a new instance of HttpClientLeadStream with Uri set to uri. This object can then be passed to the various LEADTOOLS class members that accept an ILeadStream object. Such as RasterCodecs.GetInformationAsync, RasterCodecs.LoadAsync, RasterCodecs.LoadSvgAsync or RasterCodecs.SaveAsync.
The method will create a new instance of LeadFileStream using:
var httpClientLeadStream = new HttpClientLeadStream(uri);
Note that for performance reasons, this method will check if uri contains the path to a physical file on disk. In this case, the toolkit will use LeadStream.Factory.OpenFile to create and return a LeadFileStream object instead:
// Continue as above
Refer to RasterCodecs Async Operations for more information and examples.
For .NET Framework: A reference to the Leadtools.Async.dll assembly is required to use this functionality.
For .NET Standard: This functionality is included in the Leadtools.dll assembly.Target Platforms
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries