Pauline Chevalier wrote:I tried a different url and it helped me to know that the problem came from my url. Then I tried a public cam url (http://194.17.150.25/view/index.shtml), the connection is OK but I have a new error message: com.sun.image.codec.jpeg.ImageFormatException: Not a JPEG file: starts with 0x3c 0x68. the exception is thrown by this line image = decoder.decodeAsBufferedImage(); . How can I treat this error? /*sorry for my bad english I am french */