Fix avatar path

Signed-off-by: Bernardus Jansen <bernardus@bajansen.nl>
master
Bernardus Jansen 9 years ago
parent ee81e95b89
commit e52c67957f
  1. 2
      libresonic-main/src/main/java/org/libresonic/player/dao/schema/hsql/Schema35.java

@ -139,7 +139,7 @@ public class Schema35 extends Schema {
InputStream in = null;
try {
in = getClass().getResourceAsStream("/org.libresonic.player/dao/schema/" + avatar + ".png");
in = getClass().getResourceAsStream("/org/libresonic/player/dao/schema/" + avatar + ".png");
byte[] imageData = IOUtils.toByteArray(in);
template.update("insert into system_avatar values (null, ?, ?, ?, ?, ?, ?)",
new Object[]{avatar, new Date(), "image/png", 48, 48, imageData});

Loading…
Cancel
Save