Store Image in SQL Server using Java Netbeans(Update image)

Sdílet
Vložit
  • čas přidán 13. 11. 2017
  • Update, delete data stored in sql server| reset textfield, radio buttons, combobox, checkbox, image icon | reset image icon | update image in sql server | update image in database | update image in java
    Channel Subscription : goo.gl/FZrbXg
    Affilate: amzn.to/2DPwG8d
    Playlist:
    • Java programming train...

Komentáře • 20

  • @indrasubedi
    @indrasubedi  Před 6 lety

    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;

    • @abdoulayebarry7882
      @abdoulayebarry7882 Před 6 lety

      Please Can i to have to documents of code this vidéo ?? I'm intéresade.

    • @jeyapalvt3953
      @jeyapalvt3953 Před 6 lety

      How to set clear or empty imagelable after insert data....

    • @boudaoudamine2179
      @boudaoudamine2179 Před rokem

      thank you sooo much 🙏 , you are the best man 💪

  • @Satan-vb3cp
    @Satan-vb3cp Před 3 měsíci

    you are the best dude i love youuuuuuuuuuuuuuuuuu 💓💓💓❤❤❤❤❤❤

  • @minbogati3342
    @minbogati3342 Před 6 lety

    Yes , its very helpful and useful for java developer.

  • @c-cubecentreofcomputereduc230

    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.

  • @Satan-vb3cp
    @Satan-vb3cp Před 3 měsíci

    i love your channel ❤❤❤❤💥

  • @davidardianalim6816
    @davidardianalim6816 Před 5 lety

    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?

  • @eliokyomo
    @eliokyomo Před 6 lety

    @IndraSubedi I'm getting a ByteArrayOutputStream index out of bounds error! in the for loop (int readNum).

  • @lamagonpul9186
    @lamagonpul9186 Před 5 lety

    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

  • @Satan-vb3cp
    @Satan-vb3cp Před 3 měsíci

    you are my friend now

  • @mustafaothman6074
    @mustafaothman6074 Před rokem

    When modifying a person's data, such as his name or address, the person's photo is automatically deleted? What is the reason

  • @jeyapalvt3953
    @jeyapalvt3953 Před 6 lety

    How to set clear or empty imagelable after insert data....

  • @lamagonpul9186
    @lamagonpul9186 Před 5 lety

    I try updating the Address field as I’m receiving not null constrained failed for the image. How can I solve this

    • @davidardianalim6816
      @davidardianalim6816 Před 5 lety

      same problem here, i want to update the field but not the image, and when i update it it gave me an error and the image is just gone

  • @girlyfrofunga669
    @girlyfrofunga669 Před 6 lety +1

    what is the data type of your image in sql?

  • @akanshajoon5479
    @akanshajoon5479 Před 6 lety

    You know .net