Search code examples
apiunc

Convert HTTP Path to UNC Path?


I'm working with an API that requires a UNC path to a file in order to utilize it, but in my case my file is hosted remotely.

Let's say my file is hosted at http://example.com/file.pdf

I may be misunderstanding how this would work, but what is the correctly formatted path to provide to the api if it is looking for a UNC path?

Cheers!


Solution

  • You would have to retrieve the file first and place its contents someplace within the namespace of UNC paths. Web servers are not in the namespace of UNC paths.