public class BinaryFileEncoder
extends java.lang.Object
Constructor and Description |
---|
BinaryFileEncoder() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
encode(java.io.File binaryFile)
Take a specified binary file and create a Base64Encoded String suitable
for HTTP/HTTPS data transfer.
|
static void |
main(java.lang.String[] args)
Take a specified binary file (args[0]) and convert its content to a "Base64Encoded string"
suitable for HTTP/HTTPS data transfer.
If the second parameter (args[1]) output file is provided, the "Base64Encoded string" will be stored in this file; Otherwise, the "Base64Encoded string" will be output to system.out. |
public static java.lang.String encode(java.io.File binaryFile) throws java.nio.file.NoSuchFileException, java.io.IOException
args
- File to binary file input to encode. can be relative to working directory.java.nio.file.NoSuchFileException
java.io.IOException
public static void main(java.lang.String[] args)
args
- Copyright © SAS Institute. All Rights Reserved.