Android Question B4A and B4J webserver compatible ?

wl

Well-Known Member
Licensed User
Longtime User
Hi,

I was wondering how compatible the B4A and B4J webserver implementations are.
They are both based on Jetty (same version ?)

I know for example that the B4J version supports a static files folder. Not sure whether the B4A version supports this.
Or is there a way for the B4J version to server ALL files from within a handler, as the B4 version seems to do.

Thanks !
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4J server library is much more powerful than B4A HttpServer library.

Or is there a way for the B4J version to server ALL files from within a handler, as the B4 version seems to do.
Sure. Just read the file and write it to the output stream (in most cases it is better to use the static files folder as it will cache files and compresse them if supported by the browser).
 
Upvote 0
Top