• Post Reply Bookmark Topic Watch Topic
  • New Topic

Knowing what type of image one is manipulating  RSS feed

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Suppose I get an inputstream from a web form.
1. How can I check that I have an image and not another type of binary file?
2. How do I know what type of image I have (jpg, or gif)?
Thanks in advance,
Julien.
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This piece of code might be useful:
from java almanac
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!