• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getImage on HTTPS

 
rambabu ravuri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our GUI is not applet. But we do use AWT package to create some
images internally for PDFs.

We use following statement to create an Image.


java.awt.Image imgHeader = java.awt.Toolkit.getDefaultToolkit().getImage(new URL("https://localhost:8080/images/logo.gif"));


It works great with HTTP, but does not work with HTTPS. It does not
even throw any exception.

Just shows a blank image.

Any Ideas or alternatives would be appreciated...

Thanks,
Ram
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of the JDK does your JVM implement? Old ones do not support HTTPS out of the box.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic