public final static void copyFileToStream(File fromFile, OutputStream out, TaskMonitor monitor)
			throws IOException {

		try (InputStream fin = new FileInputStream(fromFile)) {
			if (monitor != null) {
				monitor.initialize((int) fromFile.length());
			}
			copyStreamToStream(fin, out, monitor);
		}
	}
Copy the contents of the specified fromFile to the out stream.
@param fromFile file data source
@param out destination stream
@param monitor if specified the progress will be reset and will advance to
100% when the copy is complete.
@throws IOException thrown if there was a problem accessing the files
Ghidra/Framework/Utility/src/main/java/utilities/util/FileUtilities.java