Displaying an image via widget.

Hi, I've created a widget that takes an input of an image and displays it. But I just wanted to verify the correct way to source the image. I've used /file?guid= (Object GUID) in the past & that was fine. But in some applications that was not fine and had to use object.get(path)... Which one is correct? thanks
1 answers

Take a look at the filedocument widget from the appstore. Add the csrftoken.

url ="file?target=window&guid=" + this._contextObj.getGUID() + "&csrfToken=" + mx.session.getCSRFToken() + "&time=" + Date.now();