B4J Question B4J non-ui app and bitmaps

GraemeW

Member
Licensed User
Longtime User
I have a VPS-hosted B4J non-ui server app connected to a MySQL database and wish to create a series of xChart images from the db for use with 24/7 YouTube live (via FFmpeg).

However I have found that the B4J non-ui app cannot produce bitmaps from xChart snapshots. Am I missing something? If true, is another approach possible, such as B4J -> Python -> FFmpeg?
 

aeric

Expert
Licensed User
Longtime User
Have you checked this tutorial?
 
Upvote 0

GraemeW

Member
Licensed User
Longtime User
Have you checked this tutorial?
Thanks for that. I'll check it out.

However my observation about non-ui and bitmaps may not be correct - things seem to be ok if I change bitmap to B4XBitmap. 😬
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I am not familiar with FFMpeg but I think it is working with jShell.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Maybe you can use these libraries too:

 
Upvote 0

GraemeW

Member
Licensed User
Longtime User
I am not familiar with FFMpeg but I think it is working with jShell.
Yes the tutorial uses jShell to get a ui app on the server to produce the graphic, using text output from the non-ui app. I suspect this might get very complicated for the production of chart images, which is why I was thinking of using the non-ui server to output text arrays as input to python for graph image production.

I'll also check out your other suggestions in case plan A does not actually work - thank you :).
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
You can also use Chart.js
 
Upvote 0

GraemeW

Member
Licensed User
Longtime User
You can also use Chart.js
Thanks again :) . A dynamic graphic website with data from my B4J server is another approach - essentially a real-time web dashboard. Interesting, I'll think a bit more about what I'm trying to solve..
 
Upvote 0
Top