I've been trying to display a picture and
windows media player in project,but both of the do not want to display.
To display a picuture, in my project library I've included Acme package.
import Acme.JPM.Encoders.GifEncoder.*;
This is how it looks.
response.setContentType("image/gif");
OutputStream output = response.getOutputStream();
ImageIcon imageIcon = new ImageIcon("D:\\radjb\\image\\"+
request.getParameter("country")+".gif");
Image image = imageIcon.getImage();
new GifEncoder(image,output,true).encode();
output.close();