mlreportgen.utils.fileToURI class

Package: mlreportgen.utils
Superclasses:

Convert file path to Universal Resource Identifier (URI)

Construction

uri = mlreportgen.utils.fileToURI(filename) converts the specified filename to a Uniform Resource Identifier (URI).

Input Arguments

expand all

Name or full path of file to convert, specified as a string or character vector.

Output Arguments

expand all

Universal Resource Identifier (URI) of the file, returned as a string. URIs are strings that identify resources. In particular, they specify the name of a file and the path to that file. By using a standard format, URIs allow access to a resource over a network. Web addresses (URLs) are types of URIs.

Examples

collapse all

uri = mlreportgen.utils.fileToURI...
   ("C:/Users/jsmith/Desktop/200-C Form.pdf")
uri = 
   "file:/C:/Users/jsmith/Desktop/200-C%20Form.pdf"

Introduced in R2018b