[kepler-dev] [Bug 4123] New: - Image reader can't read URL

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Tue Jun 2 10:01:10 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4123

           Summary: Image reader can't read URL
           Product: Kepler
           Version: 1.x dev
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: actors
        AssignedTo: berkley at nceas.ucsb.edu
        ReportedBy: chrisweed at gmail.com
         QAContact: kepler-dev at kepler-project.org


In ptolemy.actor.lib.image.ImageReader
replace
_image = new ImageIcon(_fileRoot).getImage();

with:
try {
  _image = ImageIO.read(_url);
} catch (IOException e) {
  throw new IllegalActionException(this,e.toString());
}
if(!_image)
{
  throw new IllegalActionException(this,"Could not read file or URL:
"+_url.toString());
}


More information about the Kepler-dev mailing list