Convert file path to Universal Resource Identifier (URI)



uri = mlreportgen.utils.fileToURI(filename) converts filename to a Universal Resource Identifier (URI).


collapse all

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


Input Arguments

collapse all

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

Output Arguments

collapse all

Universal Resource Identifier (URI) of the file, returned as a character vector or string scalar. 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.

Introduced in R2018b