how to get image from local storage/folder on button click using java netbeans | java tutorials #44

Опубликовано: 30 Сентябрь 2024
на канале: GSoft Knowledge
1,069
10

Hello guys here in this video i have shown how you can fetch or get Image from the local storage after uploading or saving the file. Watch the video till the end to understand easily, have given the code also below, hope you like this video.
------------------------------------------------------------------------
CODE IS HERE, You can copy and paste-
-------------------------------------------------------------------------
BufferedImage img = null;
img = ImageIO.read(new File(rs.getString("StudentPhoto")));
Image img1 = img.getScaledInstance(jLabel9.getWidth(), jLabel9.getHeight(), Image.SCALE_SMOOTH);
format = new ImageIcon(img1);
jLabel9.setIcon(format);

==============================================
FOR FASHION ACCESSORIES AND SHOES FOLLOW MY PAGE

👇 👇 👇 LINK TO INSTAGRAM PAGE 👇 👇 👇

Page Link: https://zee.gl/01mBg

PAGE NAME: kicksniks
FREE SHIPPING ALL OVER INDIA
Must follow my instagram page
---------------------------------------------------------

Dont forget to like, share and Subscribe.