This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes image format from a byte array ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "image format from a byte array ?" Watch "image format from a byte array ?" New topic

image format from a byte array ?

Titus Abraham
Ranch Hand

Joined: Jun 03, 2009
Posts: 36
hello ,

given a byte array is there any way we can know whats the image format ?

as i am getting data from the server in byte format only.

Best regards,
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42956
The ImageInfo class could be adapted to work with byte[], assuming it covers the formats you need to deal with.
I agree. Here's the link:
subject: image format from a byte array ?
jQuery in Action, 3rd edition