public DepthImage(File file) {
		// Try turn BufferedImage to img
		// DataBufferByte data = (DataBufferByte)
		// img.getRaster().getDataBuffer();
		// byte[] imageByte = data.getData();

		// try {
		// ByteArrayOutputStream os = new ByteArrayOutputStream();
		// ImageIO.write(img, "jpg", os);
		// InputStream fis = new ByteArrayInputStream(os.toByteArray());
		// String imageData = Util.readInputStream(fis);
		// // Fail to load correct imageData
		// loadImageData(imageData);
		// } catch (IOException e) {
		// // TODO Auto-generated catch block
		// e.printStackTrace();
		// }

		// String imageData = Util.encodeToString(img,"jpg");

		InputStream is;
		try {
			is = new FileInputStream(file);
			String imageData = Util.readInputStream(is);
			loadImageData(imageData);
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}