WWW Streaming file path in windows

Hello. I really need help. When I compile, www is not able to find the file. The screen shot is saving in the folder though. I’m sure it’s just something little. Thank you for your time! :slight_smile:

        FilePath = "Temp/Screenshots/Photo" + PhotoIndex + ".png";

        Application.CaptureScreenshot(FilePath, 1);
        Directory.CreateDirectory(Application.dataPath + "/Temp/Screenshots");
    IEnumerator GetFile() {

        WWW www = new WWW("file://" + Application.dataPath + FilePath);

        yield return www;

        OverlayTexture = www.texture;
    }

Hi

I think all you need is an extra ‘/’ right before Filepath in the 6th line of GetFile()

thanks. Sorry, I should have updated this. I now have:

        FilePath = Application.dataPath + "/" + "Temp/Screenshots/Photo" + PhotoIndex + ".png";
    IEnumerator GetFile() {

        WWW www = new WWW("file:///" + FilePath);

        yield return www;

        OverlayTexture = www.texture;
    }

and it is still not working :confused:

Aah ok, I can suggest printing Filepath value to see if its taking the intended path