Content file to Data-URI file generator in Groovy