Commit a5f0777b by Bogdan Andjelkovic

updateProfileBezSliek finished ( ostao front )

parent d9d860dd
...@@ -63,7 +63,7 @@ public class KorisnikRepository ...@@ -63,7 +63,7 @@ public class KorisnikRepository
String sql = null; String sql = null;
try { try {
slika = Base64.getEncoder().encodeToString(file.getBytes()); slika = Base64.getEncoder().encodeToString(file.getBytes());
sql = " insert into korisnik " + sql = " update korisnik " +
" set slika = '" + slika + "' where korisnikid = " + korisnik.getKorisnikId(); " set slika = '" + slika + "' where korisnikid = " + korisnik.getKorisnikId();
System.out.println( sql); System.out.println( sql);
statement.executeUpdate( sql); statement.executeUpdate( sql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment