2017-08-28 2 views
0

HALLO so mein Code wie das funktioniert, bekomme ich einen docx und einen Ordner, um die unzip Dateien zu setzen,Wie ein codiertes Docx benutzen? (Unzip)

String templateLocation = "//path"; //this is where the document is located 
String AUX = "//path"; //this is a aux folder that's get the unzip files 
unzip(new File(templateLocation), new File(AUX)); 

und das Verfahren unzip ist

die Sache ist, dass ich ein externes docx verwenden muss, das in Base64 ist, aber wie? Versuch mit diesem

 String wordx = "DocxInBase64"; 
    byte[] dataFileWord = java.util.Base64.getDecoder().decode(wordx); 
    String dataw = new String(dataFileWord,StandardCharsets.UTF_8); 

Aber im etwas zu bekommen, das

PKXsgl wie beschädigt aussieht} '_ BR; qu @ . ~ Hwx = 4 pv {3o 'M, b wi O 0 E] } ` x ? ...

irgendwelche Ideen zu beginnen mit? Vielen Dank im Voraus

Antwort