Code example for ExifInterface

Methods: getThumbnail

0
	 
	@Kroll.method 
	public TiBlob getThumbnail(String fileName)
	{ 
		try { 
			ExifInterface exif = new ExifInterface(fileName);
			 
			byte[] thumbnail= exif.getThumbnail();
			 
			Log.d("TiAPI", "thumbnail's length: " + thumbnail.length);
			 
			return TiBlob.blobFromImage(BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length));
		} 
		catch(Exception e){
			return null; 
		} 
	} 
	 
	// Properties 
	@Kroll.getProperty 
	public String getExampleProp()