how to receive file from a INPUT=file tag in a servlet

eg
HTML file
<html>
<body>
<form action="servlet.YourServlet" method="get">
<input type="file" name="yourFile" size="50">
</body>
</html>

SERVLET file

req.getParameter("yourFile)"; // only gets the path name

question is how to get the whole file?