Skip to content

Commit

Permalink
fixed getImageData (always returned sample icon)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Jan 4, 2019
1 parent 84f902b commit d5e62bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BBjGridExWidget.bbj
Expand Up @@ -1994,7 +1994,7 @@ class public BBjGridExWidget extends BBjWidget
methodend

method public static BBjString getImageData(BBjString filename$)
imageSlice!=BBjAPI().getSysGui().getImageManager().loadImageFromFile("BBjGridExWidget/Demo/sampleicon.png")
imageSlice!=BBjAPI().getSysGui().getImageManager().loadImageFromFile(filename$)
bytes$ = imageSlice!.getBytes("png")
b64$ = java.util.Base64.getEncoder().encode(bytes$)
methodret "data:image/png;base64, "+b64$
Expand Down

0 comments on commit d5e62bf

Please sign in to comment.