Code example for OutputStream

Methods: close, flush, write

0
		oStream = output;
	} 
	 
	public void onPictureTaken(byte[] graphic, Camera arg1) {	
		try { 
			oStream.write(graphic);
			oStream.flush();
			oStream.close();
		} 
		catch (Exception ex)
		{ 
			//TO-DO: Put some logging here saying that this epic failed 
		} 
		 
		// Do some other things, like post it to a service! 
	} 
	 
	 
}