Dale Mitchell

Greenhorn
+ Follow
since Feb 19, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Dale Mitchell

I worked for three years doing web and server-side java projects (traditional enterprise sysytems). However, for the last year, I have worked in a completely different realm (instrument control) including developing swing guis connecting to various servers via rmi and corba that has nothing to do with the web. Being diversified with sound OO experience is never a drawback. I think that the Sun developer's exam is closer than the other tests to making you think how to solve a problem.
Determine image size and create a byte[] to hold it from the stream. Once loaded you can directly create the image by using either creating a new ImageIcon using one of the constructors that take a byte[] or using Toolkit.createImage(byte[] imageData)
22 years ago
Depending on what you want to do with the image you could convert the BufferedImage into some other format. In jdk1.2 and 1.3 there is a package called com.sun.image.codec.jpeg that can encode your BufferedImage into a JPEG. This image can be sent via RMI. On the other end, you can use this image as is or use the JPEGImageDecoder class to create a BufferedImage from the transported byte[].


Dale
23 years ago