Closed qwert2003 closed 4 years ago
Not sure why I never replied, but your suggestion was applied:
https://github.com/jfree/jfreesvg/commit/2e6cd5f8dde71e37704e4d786e3b64235326adaf
Will be included in the next release.
Hi, This is a great library, and great to see the update for JDK 11. For this commit, it looks to me that
this.sb.append(Base64.getEncoder().encode(getPNGBytes(img)));
should rather be
this.sb.append(Base64.getEncoder().encodeToString(getPNGBytes(img)));
Otherwise, I find the default String representation of the byte array is written within the image, i.e. something like [B@210dfa10
rather than the actual String.
You are correct. Fixing this now.
When compiling the library jfreesvg with JDK11 I get the following error:
Others seem to have similar issues, e.g. https://github.com/tomdesair/tus-java-server/issues/14 (just found by searching). They say:
Not sure it is the same issue though. Any ideas?