Help coderanch get a
new server
by contributing to the fundraiser

Dale Mitchell

Greenhorn
+ Follow
since Feb 19, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

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
22 years ago