Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

image format from a byte array ?  RSS feed

 
Titus Abraham
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
titus
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ImageInfo class could be adapted to work with byte[], assuming it covers the formats you need to deal with.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!