OCRWebService/src/com/conordevilly/ocr/webservice/RestService.java
private File convStringToFile(String encodedData) throws IOException{
		File ret = new File("tmp");
		byte[] rawData = Base64.getDecoder().decode(encodedData);

		FileOutputStream writer = new FileOutputStream(ret);
		writer.write(rawData);
		writer.close();

		return ret;
	}
//Converts a string of encoded data to a file
Converts a string of encoded data to a file
Converts a string of encoded data to a file
private File convStringToFile(String encodedData) throws IOException{
		File ret = new File("tmp");
		byte[] rawData = Base64.getDecoder().decode(encodedData);
		FileOutputStream writer = new FileOutputStream(ret);
		writer.write(rawData);
		writer.close();
		return ret;
	}
private File convStringToFile ( String encodedData ) throws IOException { File ret = new File ( "tmp" ) ; byte [ ] rawData = Base64 . getDecoder ( ) . decode ( encodedData ) ; FileOutputStream writer = new FileOutputStream ( ret ) ; writer . write ( rawData ) ; writer . close ( ) ; return ret ; }
Converts a string of encoded data to a file
Converts a string of encoded data to a file