Skip to main content
.NET Framework 4.5.2+

IUriStreamProvider Interface

Defines the data stream provider for the IUriStreamService.

Namespace: DevExpress.Office.Services

Assembly: DevExpress.Office.v22.1.Core.dll

Declaration

[ComVisible(true)]
public interface IUriStreamProvider

Remarks

The IUriStreamProvider interface defines a IUriStreamProvider.GetStream method, intended to retrieve the data from the URI specified in certain types of document fields.

This mechanism is used for loading images when HTML or MHT files are imported. WebUriStreamProvider is responsible for performing the web request and obtaining image data if an image is represented by a standard URI. DataStringUriStreamProvider is used for HTML files with embedded images that are base64-encoded. MhtUriStreamProvider loads images when RichEdit imports an MHT file.

You can implement your own custom provider and register it via the IUriStreamService.RegisterProvider method to make the provider implementing the IUriStreamProvider interface available to clients of the service.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IUriStreamProvider interface.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also