Hi all friends, Iam developing one uploading application for client side Iam using html and for server side(Tomcat4.1.24) Iam using servlet but my problem is I have to upload big file say upto 50mb now i want to send file to server in block wise(2048kb) for that i want to read file in block of 2048 kb and want to write on outputstream and so that my servlet can read from outputStream and can write on destination folder.Can I give Resume and Suspend facility in html which I have given in swing client interface. I have already developed this application using swing and servlet.Can you plz guide me how I can do this in html.Eagerly waiting for someone reply.Below r my codes for html.
<script> function sendFile() { var sFileName = document.getElementById("txtFile").value; var sSafeFileName = encodeURIComponent(sFileName); var path="http://127.0.0.1:8080/examples/servlets/NetRecvServlet"; document.forms[0].action=path+"?"+"&name=" + sSafeFileName; document.forms[0].submit(); } </script> <body> <form name="form1" method="POST" enctype="multipart/form-data"> <p>Select file to send:<input name="Button" type="file" class="file1" id="txtFile" size="30"></p> <p><input name="sendfilebtn" type="button" class="btn" id="sendfilebtn" value="Send File" onClick="sendFile()"></p> </form> </body> Regards Bikash __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]