public static function GetFile($fieldname, $b64encode = true, $ignore_empty = false, $max_kb = 0, $ok_types = null)
	{
		$fupload = self::GetFileUpload($fieldname, $ignore_empty, $max_kb, $ok_types);
		return ($fupload) ? $fupload->ToXML($b64encode) : null;
	}
public static function GetFile($fieldname, $b64encode = true, $ignore_empty = false, $max_kb = 0, $ok_types = null)
	{
		$fupload = self::GetFileUpload($fieldname, $ignore_empty, $max_kb, $ok_types);
		return ($fupload) ? $fupload->ToXML($b64encode) : null;
	}
public static function GetFile ( $ fieldname , $ b64encode = true , $ ignore_empty = false , $ max_kb = 0 , $ ok_types = null ) { $ fupload = self :: GetFileUpload ( $ fieldname , $ ignore_empty , $ max_kb , $ ok_types ) ; return ( $ fupload ) ? $ fupload -> ToXML ( $ b64encode ) : null ; }
Returns a form upload as an xml document with the file data base64 encoded.
suitable for storing in a clob or blob

@param	string $fieldname name of the html form field
@param	bool $b64encode true to base64encode file data (default true)
@param	bool $ignore_empty true to not throw exception if form fields doesn't contain a file (default false)
@param	int $max_kb maximum size allowed for upload (default unlimited)
@param	array $ok_types if array is provided, only files with those Extensions will be allowed (default all)
@return   string or null
Returns a form upload as an xml document with the file data base64 encoded . suitable for storing in a clob or blob