JBIDE-14300 Implementing phonegap's Capture.getFormatData() method