public static void decodeAndSetFileData ( final File file , final String rawData ) throws FrameworkException , IOException { Base64URIData uriData = new Base64URIData ( rawData ) ; setFileData ( file , uriData . getBinaryData ( ) , uriData . getContentType ( ) , true ) ; }
Decodes base64 - encoded raw data into binary data and writes it to the given file .