System.out.println("Not a FileInputStream");
}
InputStream iStream = null;
try {
OutputStream oStream = response.getOutputStream();
iStream = fs.open(imageFile.getCanonicalPath());
// With the current implementation, we only support FS, so this is a plcae holder.
// TODO - Optimize this (if required) when DFS is supported
byte[] buffer = new byte[4096];
int len;
while ((len = iStream.read(buffer)) != -1) {