connectionUtils/src/main/java/com/ge/research/semtk/utility/Utility.java
public static void writeFile(String path, byte[] contents) throws Exception {
		OutputStream os = null;   
		try {  
			os = new FileOutputStream(path);
			os.write(contents); 
		} catch (Exception e) { 
			throw e;
		} finally{
			os.close();
			os = null;
		}
	}
/**
	 * Write a byte array to a local file
	 */
Write a byte array to a local file
Write a byte array to a local file
public static void writeFile(String path, byte[] contents) throws Exception {
		OutputStream os = null;   
		try {  
			os = new FileOutputStream(path);
			os.write(contents); 
		} catch (Exception e) { 
			throw e;
		} finally{
			os.close();
			os = null;
		}
	}
public static void writeFile ( String path , byte [ ] contents ) throws Exception { OutputStream os = null ; try { os = new FileOutputStream ( path ) ; os . write ( contents ) ; } catch ( Exception e ) { throw e ; } finally { os . close ( ) ; os = null ; } }
Write a byte array to a local file
Write a byte array to a local file