%><Br><table border="2"><tr><td><b>You have successfully upload the file by the name of:</b> <% out.println(saveFile);%></td></tr></table> <% Connection connection = null; String connectionURL = "jdbc:mysql://192.168.10.112:3306/file"; ResultSet rs = null; PreparedStatement psmnt = null; FileInputStream fis; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); File f = new File(saveFile); psmnt = connection.prepareStatement("insert into file(file_data) values(?)"); fis = new FileInputStream(f); psmnt.setBinaryStream(1, (InputStream)fis, (int)(f.length())); int s = psmnt.executeUpdate(); if(s>0) { System.out.println("Uploaded successfully !"); } else { System.out.println("unsucessfull to upload file."); } } catch(Exception e){e.printStackTrace();} } %>
Thanks
Related Pages:
Problem with picture - Java Beginners Problem with picture Hi,
I Develope a School Automated System... (MSSQL), i make the registrar to be able to upload the student picture from the System picture Folder and display it on the User Interface. Now, i want the registrar
Problem with picture - Java Beginners Problem with picture Hi,
I Develope a School Automated System... (MSSQL), i make the registrar to be able to upload the student picture from the System picture Folder and display it on the User Interface. Now, i want the registrar
Problem with picture - Java Beginners Problem with picture Hi,
I Develope a School Automated System... (MSSQL), i make the registrar to be able to upload the student picture from the System picture Folder and display it on the User Interface. Now, i want the registrar
Upload the picture - JSP-Servlet
Upload the picture Dear Sir,
How to upload the picture in the database a webpage and i want to show that picture another page. what i...; Hi Friend,
Please visit the following link to solve your problem. Here
make a picture a link
make a picture a link hello,
What is the way to make a picture a link?
hii,
This is the tab for image linking
<A HREF="http://www.roseindia.net"><IMG SRC="image.gif"></A>
inserting picture in ms access
inserting picture in ms access hi i am sanatan, how to insert picture in ms access by jsp.
<%@page import="java.sql.*,java.io.*"%>
<%
try{
InputStream sImage;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver
Call Picture into java
Call Picture into java Morning sir,
I want to view my picture(longblob) from My DB Mysql, I have a code like this.
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc
Call Picture into java
Call Picture into java Morning sir,
I want to view my picture(longblob) from My DB Mysql, I have a code like this.
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc
Having problem with image upload....
Having problem with image upload.... I am uploading profile pictures... to show my profile picture,it's not showing.My profile picture is getting... and went through it's source.At the place of my profile picture I found the url
How to design a frame of the picture.
How to design a frame of the picture.
This is a picture frame example, it will help you to
make a picture frame easily because it has some simple steps. If you want
java programing problem - Java Beginners
java programing problem Create a class named Movie that can be used with your video rental business. The Movie class should track the Motion picture Association of America rating , ID Number, and movie title with appropriate
I need add my java program with a picture.
I need add my java program with a picture. Good evng Frnds
Friends i created 1 jar file in my desktop. I need add this program with 1 picture. Whenever the user double clicking on that picture The program must start instead
Applet program for drawing picture and graph - Applet
Applet program for drawing picture and graph Please send me the program(code) of drawing picture and graph in Applet. Hi Friend,
Please visit the following links:
http://www.roseindia.net/java/example/java
NetBeans change the picture on one single label
NetBeans change the picture on one single label I wantted to insert Images using if condition on a button that is performed to change the picture on one single label. how shuold i do this ? and also give me an example
Change Background Picture of Slide Using Java
Change Background Picture of Slide Using Java
 ...;
In this example we are going to create a slide then change background picture of the
slide.
In this example we are creating a slide. In this slide we are inserting a
picture
Java to insert picture to database - JSP-Servlet
Java to insert picture to database Hi Guys, Please assist me on this. Below is the code I wanted to use to insert picture into Ms Sql server 2000 but after the insertion, I got this in the database (back-end
displaying images and records problem - JSP-Servlet
. Please, kindly help me to solve the problem urgently. Or in any other way to do... database is:
emp_id int;
picture blob;
first_name varchar(50);
last_name
display records with images problem - JSP-Servlet
= st1.executeQuery();
rs1 = st1.executeQuery("select picture,id from img where... = st1.executeQuery("select picture from img where id='" +productNumber...:
JSP Page
Emp ID
First Name
Picture
Photoshop Tutorial : How to remove an object from a picture
How to remove an object from a picture
 ...
from a picture. If you want to remove an object, which you don't want to like in
your picture then there is no need to worry. Just follow these easy steps
Design a picture of the sea water.
Design a picture of the sea water.
This example is about a sea water in which we are going
to teach you to make a sea water. You all have seen sea water, but here we
How to Open Picture From M.S. Access Database using Java Servlet ?
How to Open Picture From M.S. Access Database using Java Servlet ? Hi all my Friends
I have below code which insert a picture into M.S. Access Database
But i m still not able to open this picture through Java using M.S. Access
jsp or sevlet and html form to send picture to database - JSP-Servlet
jsp or sevlet and html form to send picture to database Hello guys... that contains his picture to database. What I need are html page for the form that will browse for the picture, jsp or servlet that the info from html will go
java image loadin and saving problem - Swing AWT
java image loadin and saving problem hey in this code i am trying to load a picture and save it.........but image is only visible whn we maximize the frame savin is nt done plzz help me with this code.........
import
How to make a rippled picture
How to make a rippled picture
This example can help you....
Take a picture: First capture any picture to modify.
Selection: Choose... effect: Go to Filter menu > Distort >Apply Ripple.
The picture will look
How to turn corner of the picture
How to turn corner of the picture
This is the special effect by the photoshop CS2
because it has an option to turn corner of the photograph, as I have done
here.
Insert Picture: Take any picture as I have
How to make a torn picture
How to make a torn picture
You might have seen a torn paper... follow.
Take a Picture: Take a picture of any place as I have taken here... File: Take a new file with increased size as
your picture size, past you