Skip to content

Instantly share code, notes, and snippets.

@varantes
Last active September 14, 2017 19:48
Show Gist options
  • Save varantes/b37a038ae57ff56d9bef66396fd5b072 to your computer and use it in GitHub Desktop.
Save varantes/b37a038ae57ff56d9bef66396fd5b072 to your computer and use it in GitHub Desktop.
Encode a file to Base64 saving the result into the tilesystem.
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