Registration with image upload Java Jdbc(Download Source code) | Part 5
144 views
Apr 8, 2025
Registration with image upload Java Jdbc(Download Source code) | Part 5 Source code : https://www.tutussfunny.com/registration-with-image-upload-java-jdbcdownload-source-code/ Learn how to upload an image using Java and JDBC in just seconds! In this tutorial, we'll show you a step-by-step guide on how to upload an image to a database using Java and JDBC. Whether you're a beginner or an experienced developer, this video is perfect for anyone looking to learn how to upload images quickly and efficiently. We'll cover the necessary code and provide explanations to help you understand the process. By the end of this video, you'll be able to upload images in no time!.prodive free source codes. #javaswing#javaproject
View Video Transcript
0:00
hi friends welcome to computer fun
0:02
channel In our last class we did the
0:04
registration form In this class I'm
0:06
going to teach the finding form details
0:10
Okay So let's select the uh default
0:13
package Right click new JFrame form
0:17
Otherwise you just select this one
0:18
registration form Copy Default package
0:21
Right click paste on it Paste refactor
0:24
Copy You'll get the another copy I'm
0:26
going to create this one find
0:29
different Okay So the same phone I I did
0:32
again only the thing is I I'm going to
0:34
change it as a
0:36
find So you have to change it like this
0:39
your
0:42
question Copy this control C Copy
0:44
control V paste here Select this
0:47
one Control C Copy control paste
0:51
here Put it here Employee ID
0:59
Select this one
1:04
Properties background
1:08
color drop down here Font family I'm
1:12
going to give as font I'm going to give
1:14
as change it as
1:17
uh
1:19
white Go along with white
1:22
Okay Now let's select this one If I
1:25
enter the respect employee ID the
1:28
relevant information will be displayed
1:30
So what I'm going to do is here I have
1:32
to do the things by uh thing do the
1:35
thing is first what you going to do is
1:37
this form first I'm going to go to this
1:40
one all the if you copy and paste it the
1:43
connection should be there add button
1:45
this details we don't need them this I'm
1:47
not going to add the record uh file
1:50
chooser also we don't need them we not
1:52
we are not going to choose any files
1:54
over here so this here we have to do
1:57
only one button that is a find button
2:01
has find
2:02
button this browse button Let's get rid
2:04
of this browse button So what I'm going
2:07
to do is now here this find
2:10
button if I enter the respective
2:13
employee ID the relevant all the details
2:15
will be display need to display So what
2:18
I'm going to do is I'm going to go to
2:19
this registration sorry uh this finding
2:23
details Okay So what I'm going to do is
2:24
I'm going to cool thing is I'm going to
2:27
go to get this one I'm going to explain
2:29
Don't worry This all the source code I
2:30
provide you Don't
2:32
worry So this find button you have to
2:35
paste on the code So I'm going to go to
2:37
this function I'm going to mod function
2:42
Now this one I'm going to remove this
2:46
one So you have write here
2:49
system
2:52
dot
2:57
dot
3:04
print this one select this one put it
3:07
over here
3:08
yes so here what I'm going to see here
3:10
I'm going to select the things is this
3:13
are so that I haven't put this name
3:16
spaces
3:17
So here I'm going to go to this one I'm
3:20
going to this RS mean this uh this
3:25
RS this here So here what I'm going to
3:29
do is here I'm going to go to do the
3:31
thing is so we have to implement the RS
3:33
details So the error will be go away So
3:36
here this one uh we have to take care of
3:39
the text fields and all So this text
3:43
ID this one should be txt
3:48
id You enter the txt
3:51
id Okay So the database name which is a
3:55
uh what's the name you have entered here
3:58
So database name uh I'm going to give
4:02
the registration part What's the name of
4:03
the database
4:08
Registration Okay registration Uh what
4:11
other fields are there in registration
4:13
These are the fields I just copy
4:15
this finding also you have to give this
4:17
field Same
4:18
field Okay So same field you have to put
4:21
the here
4:27
finding Okay The registration part we
4:30
need all the things you have a ID just
4:33
so that your ID we have like your ID So
4:36
here when the ven ID is this one should
4:40
be RB
4:43
male this one should be RB
4:47
female copy and paste that's it now
4:51
let's first I'm going to uh combo box
4:54
also we have displayed the combo box
4:55
whatever name we have given here c this
4:58
one first we have I'm going to first you
5:01
have to check that it's working fine or
5:02
not after that I'm going to explain and
5:05
run
5:06
it this all the source code we have done
5:08
the project this source code I provided
5:10
the description okay you will be able to
5:12
delete so this one I'm going to run on
5:15
it
5:17
uh we have this the registration also
5:19
there
5:22
the so we have
5:29
to so what I'm going to say this one I
5:32
want to run this project so why it's not
5:36
running if I run this one should be
5:38
running not that run So I'm going to put
5:40
in the additional
5:42
frame
5:47
main this frame What I'm going to do is
5:49
I'm going to go to put this
5:59
buttons This one should
6:02
be main This one should be
6:06
fine Second but I'm going to control
6:09
Copy
6:10
this control paste here This one should
6:14
be
6:25
legation Select this one
6:29
properties codes
6:32
center this one I'm going to event
6:34
action action perform write it over
6:40
here
6:43
registration if equal
6:49
new
6:56
registration Uh this is the form I bring
6:58
this
7:03
speech
7:13
station
7:18
Copy test
7:20
dot
7:32
set Copy this This one you have to press
7:34
second button
7:45
That's what I got That's
7:54
fine I'm going to use it this one Now if
7:58
you click find button it goes to the
8:00
respective form I'm going to find the
8:02
respective employee
8:04
ID So why it's not
8:07
working Is there any error
8:11
uh the error is that uh this
8:15
uh failure that the driver not received
8:18
any package
8:20
uh
8:23
because okay I'm I'm not running the
8:26
server that's
8:29
all now let's do
8:34
it run the project find
8:43
on my not working So I'm going to try
8:47
not
8:48
uh so let's select the
8:51
database go through the database and
8:53
check whether it's working or not
9:09
If I enter the database here we have
9:11
only one record left Okay So one if I
9:14
press one here no one is not displayed
9:17
details So here the basic salary is not
9:20
found The error is coming So that what's
9:22
the error But let's check
9:26
it The basic Yeah Yeah Okay The mean the
9:30
field is not correct That's the things
9:33
First name First name the address is
9:37
last
9:41
name The data is coming You have to uh
9:44
put as the same thing Uh that's the
9:47
problem Okay So the problem is
9:49
here is my my fault First
9:53
name second last
9:57
name
10:02
gender
10:05
address
10:08
department
10:10
salary immage bar So here also you have
10:14
to write it your first name last name
10:17
salary mean the
10:19
salary Everything is correct But I don't
10:22
know what what it is for department
10:24
Let's check it
10:35
again
10:37
one again the path the path is the
10:41
problem it's saying the path problem uh
10:44
what's the path the path no here I'm not
10:47
a photo this is a photo not path photo
10:50
okay so the database field I have a
10:53
mistake with the database that's the
10:55
problem okay so if I write it one it's
10:59
okay relevant detail should be okay so
11:03
what I did here is
11:06
for you can see what is the ID you enter
11:10
on this text box click find
11:12
button this ID will be assigned to this
11:15
ID variable okay this textbox name is
11:19
txt ID it will be assigned to this
11:22
variable After that PS the prepare
11:24
statement object you have written here
11:27
PST in order to write the query select
11:31
this is the query you have to select the
11:33
record why the uh using the ID what's ID
11:37
you are typing based on the ID the uh
11:39
display the record so if you type id one
11:42
what happen is it goes to here this you
11:44
select as a parameter over here if there
11:48
if the record is there if if next true
11:50
the record is Yeah So here we have to
11:53
get all the records into
11:55
the retrieve the data records into the
11:58
database column First name last name
12:00
gender department salary everything into
12:02
this column It assign to the respective
12:05
variables Okay So this one should be the
12:07
radio button Radio button when the
12:09
record is coming male it radio button
12:12
select as male If the record is coming
12:14
female this record is select as male The
12:18
radio button will be displayed upon on
12:22
the
12:24
uh request If it is male if you have
12:26
selected male male will be display If
12:27
this female female will be it is decided
12:30
based based on the database which you
12:32
are saved You are male or female Okay
12:35
This is image path where your image is
12:37
resided in your project My image is
12:39
residing in your project In my project
12:41
folder there is inside the folder there
12:43
is a another package images inside the
12:46
images we have all the images respect
12:47
images there So after that what I did
12:50
here is we have all things we are
12:52
getting from the database and assigned
12:54
to these variables Okay this all the
12:56
column names you have put in here this
12:59
column name we are retrieving the data
13:01
what's ID you are typing in the column
13:02
name you are retrieving the data and
13:04
assigned to the particular variable Now
13:06
the data is there in the this variable
13:09
this variable data we are passing to the
13:11
respective fields Okay So they are
13:13
respective fields the data will be
13:15
passing the respective field if it is a
13:17
name this field gender main is gender
13:21
selected gender these all the things
13:22
pass okay so here you can see this is
13:26
the gender option so gender option you
13:30
selected first you confirm
13:32
selected okay this can now hope I'm
13:36
going to run the project
13:40
again click fine
13:43
one Click on this here Selected
13:45
successful Okay perfect We you did the
13:49
uh job Perfect Thank you for watching If
13:51
you have any doubt you can let me know
13:53
that Thank you for watching