Blob « Icon Image « Java Swing Q&A





2. blob image problem in swing    coderanch.com

Good day everyone, This code return error when try to display image as follows C:\photo>javac InsertPicture.java InsertPicture.java:83: missing return statement } ^ 1 error the code is stated below thanks import java.awt.Graphics; import java.awt.GridLayout; import java.awt.Image; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import javax.imageio.ImageIO; import javax.swing.JFrame; import ...

3. swing blob image    coderanch.com

good day experts, this code was aimed at displaying image from database but the codes runs and display an empty page. please help me fix the problem import java.sql.*; import java.awt.*; import javax.swing.*; import java.awt.Graphics; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JLabel; public class Maggi { public static void main(String argv[]) { try { Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:food", "root", "root"); Statement ...