Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

sometimes on downloading file on client side, servlet gives content length -1 but file keeps on downloading. Any suggestions?
- pralabh
I have tried this example the upload part is fine. But the while downloading the file is always saved as UploadDownloadFileServlet with no extension so the file is not readable. Any suggestion … ? Ex when I click on Download “books.pdf” it saved as UploadDownloadFileServlet
- Devendra
i am create java website in eclipse, sql server 2008 r2 for database for servlet to database i use type 4 connectivity by using sql_jdbc 4 driver but they show me com.microsoft.sqlserver.jdbc.sqlserverexception but ping was succeed…what i do please help me
- ganesh
hi i want help me for upload files with details information after that send data to database with information bellow by JSP like (File_ID, File_name, File_Description,Date_file, Upload_file) if any persons help me
- zanyar
hi i want to upload images by creating folder with username and upload image to username folder for every user like that.
- msaahish
it showing an error-----import javax.servlet.annotation.WebListener; (cannot be resolved). @WebListener (cannot be resolved a type)
- Hareesh
Hello i am sonerao and very thank You for sharing this File upload Code it very Help full. But at the time of code importing is giving some error. i’m download u r .zip file and this file i import as it is into my eclipse it will be import success fully but it will give an error at the time of Project Deployment i have a app-ache tomcat 6.0. So Can u Give some Conclusion .thank You
- Sonerao JAdhav
Sir if i m using glassfish then servlet is not found error is reflected can u help me in this is it mandatory to use glassfish?
- Diksha
Im gettin g this error when i browse for a file and click upload. Pls help me asap. Im just trying to upload a jar file(tightvnc-jviewer.jar). Im not able to upload any type of file. It gives me the same exception everytime. Absolute Path at server=D:\Sanjay\Softwares\apache-tomcat-7.0.53\apache-tomcat-7.0.53\tmpfiles\D:\Sanjay\Softwares\tightvnc-jviewer.jar java.io.FileNotFoundException: D:\Sanjay\Softwares\apache-tomcat-7.0.53\apache-tomcat-7.0.53\tmpfiles\D:\Sanjay\Softwares\tightvnc-jviewer.jar (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:179) at java.io.FileOutputStream.(FileOutputStream.java:131) at org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:417) at com.journaldev.servlet.UploadDownloadFileServlet.doPost(UploadDownloadFileServlet.java:85) at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)
- Sanjay