copy image from clipboard

hiIs there any way to find out about type of image that you are coping from clipboard. Because i receive only this type image/x-java-image. I need to know if image is jpg or png.
[192 byte] By [mganczyka] at [2007-10-3 6:28:51]
# 1
An image in the clipboard is not encoded. It is just a raw image.
mlka at 2007-7-15 1:15:35 > top of Java-index,Java Essentials,Java Programming...
# 2
> An image in the clipboard is not encoded. It is just> a raw image.Not necessarily. What if the user clicked on a jpg from the file system and copied it to the clipboard?
SoulTech2012a at 2007-7-15 1:15:35 > top of Java-index,Java Essentials,Java Programming...
# 3

> > An image in the clipboard is not encoded. It is

> just

> > a raw image.

>

> Not necessarily. What if the user clicked on a jpg

> from the file system and copied it to the clipboard?

Then they have a file not an image in the clipboard.

The fact that the file contains a JPG image is irrelevant.

mlka at 2007-7-15 1:15:35 > top of Java-index,Java Essentials,Java Programming...
# 4
read the OP, the question was "what type of image was copied to the clipboard". if it was pixel/raw data then whether or not it was jpg or png is what's irrelavent. i felt it was obvious that this was a file (which is still an image) and not pixel buffer data.
SoulTech2012a at 2007-7-15 1:15:35 > top of Java-index,Java Essentials,Java Programming...
# 5

> read the OP,

OK then. "image/x-java-image", not application/x-java-file-list.

> the question was "what type of image was

> copied to the clipboard". if it was pixel/raw data

> then whether or not it was jpg or png is what's

> irrelavent.

That is what I said in my first post. "image/x-java-image" is what Java return when you copy a Image (print screen, open Paint select, copy etc).

When you copy a File it returns a List of Files.

>i felt it was obvious that this was a

> file (which is still an image) and not pixel buffer

> data.

It sounds to me like the OP has copied an image from an image program (or hit print screen). At which point it is a raw pixel buffer.

mlka at 2007-7-15 1:15:35 > top of Java-index,Java Essentials,Java Programming...