Base64 Encoding and Decoding Example in Scala

This fairly simple example makes use of the core Java APIs to read files, demonstrating how to construct a base-64 encoded version, and then generating the original file again. package com.garysieling { import java.io.{File, FileInputStream, FileOutputStream} import sun.misc.{BASE64Encoder, BASE64Decoder} object Base64 extends App { val filename = “””C:\IdeaProjects\base64\tests.pdf””” Console.println(“Testing ” + filename) val file = …