Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

decode base64 to file java

// Note preferred way of declaring an array variable
byte[] data = Base64.decodeBase64(crntImage);
try (OutputStream stream = new FileOutputStream("c:/decode/abc.bmp")) {
    stream.write(data);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #decode #file #java
ADD COMMENT
Topic
Name
2+9 =