Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying an Image over a network.  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am building a small desktop application that needs to retrieve infromation from a database server somewhere in the same LAN. The application needs to obtain information about specific vehicles in the database and display the image as well. Is there any way that the image can be displayed in the client without having to download the image to the local hard-drive?
 
Java Cowboy
Sheriff
Posts: 16082
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, your program could just download the image into a buffer in memory and display it.

Once you have downloaded into a buffer in memory (using whatever protocol you need to get it from the server) you could load it like this:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!