| | |
How to save uploaded image in mysql using jsp?
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
adatapos...
i try run your program....
this error appear:
i am using apache as my web server
i try run your program....
this error appear:
•
•
•
•
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 22 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:316)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
Last edited by farahshafilla; Jul 5th, 2009 at 11:40 pm.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
•
•
I am uploading a zip containing the code which I had posted in previous thread. I have use NetBeans6.1. Unzip it, open it uwing netbean6.1, change the mysql - database/user/password and (run)deploy it.
it is my data base incorrect
my data base is :
sql Syntax (Toggle Plain Text)
CREATE TABLE `testimage` ( `id` VARCHAR(11) DEFAULT NULL, `image` BLOB )
Last edited by peter_budo; Jul 6th, 2009 at 6:07 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
•
•
•
•
it is my data base incorrect
my data base is :
CREATE TABLE `testimage` (
`id` varchar(11) default NULL,
`image` blob
)
At mysql prompt use following commands
JSP Syntax (Toggle Plain Text)
>Use database_name >Create table testimage ( imageid varchar(100) primary key, imagedata blob ); >
Failure is not fatal, but failure to change might be. - John Wooden
•
•
•
•
I didn't get you. Are you not creating a table into a database or something else?
At mysql prompt use following commands
JSP Syntax (Toggle Plain Text)
>Use database_name >Create table testimage ( imageid varchar(100) primary key, imagedata blob ); >
when i change the database name,username and passwoprd,that u give, the image still not save in the database.so im confused,what's wrong with the code.
it is because of my database or others thing.
Last edited by farahshafilla; Jul 6th, 2009 at 6:24 am.
![]() |
Similar Threads
- How to Connect MySQL from JSP Page (JSP)
- Saving n Retrieving Image in mysql (Java)
- Store and retrieve image from mysql db with JSP (JSP)
- how to save and retrieve an image using mysql and php (PHP)
- Problem displaying path of image from mysql (PHP)
- problem saving image into mysql database (VB.NET)
Other Threads in the JSP Forum
- Previous Thread: data file and servlet program
- Next Thread: server deployment in linex with tomacat server
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web






