
i want to upload the video and image send me the coding for this in java
Here is my html code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Student uploading Document</title>
</head>
<body>
<table width="50%" border="0" align="center" cellpadding="0" cellspacing="8">
<tr>
<td width="26%"> </td>
<td width="74%"> </td>
</tr>
<tr>
<td height="25" colspan="5" align="center" valign="middle"> <h2><a style="color:Green">Student Uploading Form</a></h2>
</center></tr>
<tr>
<td><strong>Name of the Candidate :</strong>
<td><b>
<input type="text" name="Name of the Candidate"size="30" >
</b>
</td>
</tr>
<tr><td colspan="2" align="center"> </td></tr>
<tr> <td><strong>Agefromtheregistrationofthecandidate:</strong>
<td><b>
<input type="text" name="Agefromtheregistrationofthecandidate" size="30"<br><br>
</b>
</td>
</tr>
<tr><td colspan="2" align="center"> </td></tr>
<tr>
<td><strong>Title of the work :</strong>
<td><b>
<input type="text" name="Title of the work"size="30">
</b>
</td>
</tr>
<tr><FORM ENCTYPE="multipart/form-data" ACTION="http://localhost:8080/examples/UploadServlet" METHOD=POST>
<br><br><br>
<center>
<tr>
<td colspan="2" align="center"> </td>
</tr>
<tr>
<td><Strong>Description of the work : </strong></td>
<td><INPUT NAME="file" TYPE="file" size="35"></td>
</tr>
<tr><FORM ENCTYPE="multipart/form-data" ACTION="http://localhost:8080/examples/UploadServlet" METHOD=POST>
<br><br><br>
<center>
<tr>
<td colspan="2" align="center"> </td>
</tr>
<tr>
<td><strong>Video of Work : </strong></td>
<td><INPUT NAME="file" TYPE="file" size="30"></td>
</tr>
<tr><FORM ENCTYPE="multipart/form-data" ACTION="http://localhost:8080/examples/UploadServlet" METHOD=POST>
<br><br><br>
<center>
<tr>
<td colspan="2" align="center"> </td>
</tr>
<tr>
<td><strong>Image of Work : </strong></td>
<td><INPUT NAME="file" TYPE="file" size="30"></td>
</tr>
<tr><br><br>
<td align="right"><b>
<input name="button" type="button" value="Submit" />
</b></td>
<td><b>
<input name="button2" type="button" value="Cancel" />
</b></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
send me the java code for this.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.