Initial commit.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# File64
|
||||
|
||||
This library will take a file passed as a string and return a Base64 encoded string.
|
||||
|
||||
It is intended primarily for use when preparing files for inclusion in JSON files.
|
||||
|
||||
The dependencies are all in the default Java libraries.
|
||||
|
||||
## Functions
|
||||
|
||||
### base64
|
||||
|
||||
Type: Public<br>
|
||||
Return: String
|
||||
|
||||
### file_to_byte
|
||||
|
||||
Type: Private<br>
|
||||
Return: `byte[]`
|
||||
|
||||
This function transforms a binary file to byte[] array. `file_to_byte` is used by `base64` when it needs to operate on a file. Because `java.util.Base64.getEncoder()` requires a byte array to operate on it is necessary to binary files into this type.<br>
|
||||
This allows it to be turned into a base64 encoded string suitable for use in
|
||||
JSON.
|
||||
Reference in New Issue
Block a user