Комментарии:
Please change the code as follows:
public class Succes extends javax.swing.JFrame {
String gender;
String filename = null;
byte[] person_image;
public Succes() {
this.person_image = null;
initComponents();
show_user();
}
and in private void jTable_Display_UserMouseClicked(java.awt.event.MouseEvent evt)
write the code as follow for image:
byte[] img = (userList().get(i).getImage());
ImageIcon imageIcon = new ImageIcon(new ImageIcon(img).getImage().getScaledInstance(lbl_img.getWidth(),lbl_img.getHeight(),Image.SCALE_SMOOTH));
lbl_img.setIcon(imageIcon);
person_image=img;
When modifying a person's data, such as his name or address, the person's photo is automatically deleted? What is the reason
ОтветитьI watched all your videos on JDBC tutorial. Really appreciate your sincere effort. I have a request if you could kindly make a video on navigation of records using buttons like First , Last , Next and Previous then I think your series on JDBC tutorial would really be 100% complete and would be of great help to millions of people. So please make on navigate buttons on your current data fields that is id, address , gender , knowledge , subject and image.
Ответитьhey so i manage to use this code, but i can't update anything before i insert the image. This is strange tho if i want to update the subject only and not the image, i can't do that since it gives me error and it's not convenient. And after that the image just gone and the data is not updated, what should i do?
ОтветитьI try updating the Address field as I’m receiving not null constrained failed for the image. How can I solve this
ОтветитьI try updating the name field but they telling me that the image is null, and it’s not inserting. How can I solve this problem
ОтветитьHow to set clear or empty imagelable after insert data....
Ответить@IndraSubedi I'm getting a ByteArrayOutputStream index out of bounds error! in the for loop (int readNum).
Ответитьwhat is the data type of your image in sql?
ОтветитьYes , its very helpful and useful for java developer.
ОтветитьYou know .net
Ответить