}
if ((tempUCName.endsWith("JPEG"))||(tempUCName.endsWith("JPG"))){
inResponse.setContentType("image/jpeg");
}
InputStream in = new ImageSource().getResource(tempName);
if (in == null){
// check on the file system
File tempFile = new File(tempName);
if (tempFile.exists()){
in = new FileInputStream(tempFile);