This discussion is archived
1 Reply Latest reply: Dec 4, 2012 8:14 AM by Tolls RSS

response.setContentType - question

bip_monkey Newbie
Currently Being Moderated
Hello,

I have a servelet where I am setting the content type as follows:

response.setContentType("image/jpg");

What is there are difference between doing the following with respect to the above (if any)?
1.
response.setContentType("image/jpeg");
2.
response.setContentType("image/JPG");
3.
response.setContentType("image/JPEG");
Thanks,

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points