my error..

URL path =  ImageClass.class.getResource("seeds.jpg");
BufferedImage nimg =;

does the trick

On 7/13/06, Ayodeji Aladejebi < [EMAIL PROTECTED]> wrote:
PackageResourceReference pack = new PackageResourceReference(ImageClass.class,"myimage.jpg");

 URL path = null;
        try {
            path =  ((WebApplication)getApplication()).getWicketServlet().getServletContext().getResource(urlFor(pack).toString());
        } catch (MalformedURLException ex) {

Someone should help me get out of this. this stuff is returning path as NULL

I have an image resource in a package and i need a convinient way to get a streamable handle to it from wicket page. what do i do? i know about JarInputStream but is thier a convinient wicket way of getting that done?


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Wicket-user mailing list

Reply via email to