CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> Java

 How to upload a file from html page to database using jsp programming.

Print topic Send  topic

Author Message

Posts: 1
Posted: 10/10/2007, 12:07 AM

Hi All :-)
How to upload a file from html page to database using jsp programming.

i have created a table called task_table with a field (up BLOB) as BLOB data type.

<input type="file" name="attach">

<% f=new"attach"); fis= new;
Connection con=DriverManager.getConnection("jdbc:odbc:balaji","admin","qsg");
PreparedStatement pst=con.prepareStatement("insert into task_table values(?)");
I am not able to upload a file to sql database.
I am not sure this approach is correct or not..
Please help me any one to come out of this problem...its very urgent for me

Thank you,

View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.