This content has been marked as final. Show 9 replies
In this case, the path resolves to the following on the Mac.
Is this the trace statement from trace(imgThumb.source);
Thanks for responding
That is the exact path assigned to the Source of the Image control. However, it isn't exactly a trace of the Image.Source property.
The code in question is attached
The alert shows the path I originally posted and shows that the fileImgThumb.exists returns False.
As I mentioned, this works perfectly in Windows. There is some code elsewhere in the app that creates the thumbnail. That does work on the Mac as the thumbnail image is created and saved where expected.
I am not sure what I might be doing wrong.
Thanks for your help,
sid, do a trace statement after the assignments for your two variables and post those trace statements back to the form.
I did a trace on the imgThumb.source and got the same result. It is returning what appears to be the correct path. We verified that the filepath and filename are in the correct case as well.
In this case the exact path returned was
The filename is different because we used a different starting image. However, it does match what was saved in the pdqtemp directory.
Thanks again for taking the time to help us with this.
Jed you still out there?
if the file path is correct the next thing I would check is your file permissions. are you running the application from the brian user account?
I just hit this same problem. The fix was prefixing "file://" to the path just on macs:
if (Capabilities.os.search("Mac") >= 0)
image.source = "file://" + path;
You da man....or should I say da FISH!!!!
That did the trick....so much for Adobe documenting that!
Thanks for the help.
Yes, trout, awesome job. I totally overlooked that. The image component is expecting a URL source. Cheers.