I am working on a Java project after a very long time of not having used the language, so bear with me (I'm primarily a .NET and Windows Forms developer nowadays, as some background).
I am creating some Java Bean classes to store related data which will be passed between separate Java processes on my local machine through RMI. Some of these processes will act as clients and expose a GUI to the user (most likely Swing-based).
Let's say I have a Java Bean which represents information for a driver's license. Among other things like the license number and information about the driver, one of the properties should be a photo of the driver. This photo will be displayed in a GUI and set by the client's user, and may also have to be stored in a database by another process at some point.
In C#, I would use the System.Drawing.Image class to store this information. But what should I use in a Java Bean? Again, I haven't used Java in a long time to develop a project, so I'm quite rusty; I'm sure this is something simple, but a quick web search is not giving me anything.