displaying image

hi there,

i have created a swing applet displays me a url, what the url returns me is the image in binary format, and i want to show the complete image using that binary data

so how do i do it.

some thing like this :

URL url = new URL("http://192.168.1.1:8086/file-storage/download/");

JEditorPane jep = new JEditorPane();

jep.setPage(url);

output is in binary on my applet window.

[438 byte] By [ppdhans] at [2007-9-26 2:29:17]
# 1
You can use JLabel class: JLabel label=new JLabel(new ImageIcon(url)); This works with jpeg and gif images, for other formats you can use JAI.Dmitry HudyakovBrainbench MVP
dhudyakov at 2007-6-29 9:46:16 > top of Java-index,Archived Forums,Java Programming...