I am using an API that works with images and one of the methods expects a path to a file on the physical disk.
The problem I have is that I’m retrieving images through a WCF service so the image already exists in memory. I don’t want to have to write the file to disk just to have this method re-open it and operate on it.
Is there any way I can refer to the file in memory via a string-based path?
Short answer, no. Long answer, you can use a ram disk as a hack. Accepting only a filename (and not alternatively a Stream), is a flaw in the API.