Fórum Salvar Blob em Mysql #507230
14/01/2015
0
Yuri Moraes
Curtir tópico
+ 0Posts
14/01/2015
Ronaldo Lanhellas
File file= new File("your_path");
FileInputStream inputStream= new FileInputStream(file);
PreparedStatement statement = connection.prepareStatement("INSERT INTO yourTable (yourBlob) VALUES (?)");
statement.setBlob(1, inputStream);
Gostei + 0
14/01/2015
Ronaldo Lanhellas
File file= new File("your_path");
FileInputStream inputStream= new FileInputStream(file);
PreparedStatement statement = connection.prepareStatement("INSERT INTO yourTable (yourBlob) VALUES (?)");
statement.setBlob(1, inputStream);
Gostei + 0
14/01/2015
Ronaldo Lanhellas
File file= new File("your_path");
FileInputStream inputStream= new FileInputStream(file);
PreparedStatement statement = connection.prepareStatement("INSERT INTO yourTable (yourBlob) VALUES (?)");
statement.setBlob(1, inputStream);
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)