I get a PDF image as Base64Encoded bytes in an XML file, something like this(much longer, stripped):
JVBERi0xLjMKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMyAwIFIKL091dGxpbmVzIDIgMCBSCi9EZXN0cyA1IDAgUgovUGFnZU1vZGUgL1VzZU5vbm
Want to write java code to convert it into image file . I tried using javax.xml.bind.DatatypeConverter.printBase64Binary(byte[])
but not sure how to create byte[]
of above bytes.