public virtual IFileValueBuilder File(FileInfo file) { try { return(File(IoUtil.FileAsByteArray(file))); } catch (IoUtilException e) { throw; //throw new System.ArgumentException(e); } }
public virtual IFileValueBuilder File(Stream stream) { return(File(IoUtil.InputStreamAsByteArray(stream))); }