Skip navigation
Currently Being Moderated

scriptUIImage issue

Jun 15, 2012 5:30 AM

Tags: #image #scriptuiimage

In the below code I am getting an alert saying "Invalid Image Data".

 

try

{

          var myImage = ScriptUI.newImage("C:\\Users\\Brian\\Desktop\\testImage.gif")

}

catch(e)

{

          alert(e)

}

 

I am under the impression that ScriptUI objects can accepted images in the form of a GIF from the API found here -> http://jongware.mit.edu/idcs5js/pc_ScriptUIImage.html

 

testImage.gif

 

This is the image I am trying to use. I'm not sure if you will be able to download it from the forums but if you can it is a good test case. This does not work on a Mac/PC on CS 5.5.

 

 

Any help or explanations would be great! Thanks.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points