Project

General

Profile

Actions

Bug #4123

closed

Image reader can't read URL

Added by Chris Weed over 15 years ago. Updated over 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
actors
Target version:
Start date:
06/02/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4123

Description

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());
}

Actions

Also available in: Atom PDF