Last active
September 14, 2017 19:48
-
-
Save varantes/b37a038ae57ff56d9bef66396fd5b072 to your computer and use it in GitHub Desktop.
Encode a file to Base64 saving the result into the tilesystem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.file.Files | |
import java.nio.file.Paths | |
import java.util.* | |
Files.write(Paths.get("N:\\NexaWorkflows\\fotos\\FaceWithSmile_1_base64.txt"), Base64.getEncoder().encode(Files.readAllBytes(Paths.get("N:\\NexaWorkflows\\fotos\\FaceWithSmile_1.jpg")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment