i have an image stored in the column( img) of mysql table albums. the format is blob.
i do not no how to retreive it from the table and display it in a label img1 in my netbeans project.
how do i write the resultset code and display it on the label.
please help me.
noorjan
0
Newbie Poster
Recommended Answers
Jump to Postthis might help you get started:
Read image blob from database Java
Jump to Poststeps for setting image for Label:
create a image file as follows
File image = new File("D:\mysample.jpg");
i think you know how to read image data from database.once you get the resultset object do as follows i mean store image column data into above file
// after …
All 5 Replies
stultuske
1,116
Posting Maven
Featured Poster
radhakrishna.p
29
Posting Whiz in Training
noorjan
0
Newbie Poster
radhakrishna.p
29
Posting Whiz in Training
radhakrishna.p
29
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.