You can use this class to generate JSON Web Token (JWT) for use in Web API B4J Server.
This code is using JavaObject from Java JWT github project (https://github.com/auth0/java-jwt) by Auth0.
I only add support for HMAC algorithms. If you want, you can modify this code to support RSA and ECDSA...
Does anyone know some workaround?
Compiler error:
src\b4j\example\servercorsfilter.java:115: error: no suitable constructor found for FilterHolder(Class<CAP#1>)
FilterHolder fh = new FilterHolder((Class<? extends Filter>) Class.forName("org.eclipse.jetty.servlets.CrossOriginFilter"))...
Hi all,
Using cloudKVS in a test app to sync data from 2 Android devices to the cloudKVS server (vanilla B4J app listening on port 51042).
Works fine when the server is my laptop, and the Androids are on the same Wifi network.
But when the server is on my VPS (Ubuntu with JRE installed...
Hi there
Yesterday I got meself thinking, what if I could ensure SSR (Server Side Rendering) be possible in the BVAD3 apps.?
Server-side rendering (SSR) is an application’s ability to convert HTML files on the server into a fully rendered HTML page for the client. The web browser submits a...
With it clear that an Arduino would not support my project and the recommendation that I should upgrade to a RPI covered in the thread rMQTT HostName with query parameters and despite my previous less than satisfactory experience with RPi projects, I'm pleasantly surprised with progress, however...
Hallo,
ich habe eine App geschrieben, welche einwandfrei funktioniert und Daten über Bluetooth empfängt und diese in eine SQL Datenbank mithilfe der SQL Bibliothek schreibt. Dies funktioniert alles super.
Nun wäre es super, wenn parallel dazu alle Werte, welche in die lokale SQL Datenbank...
I implemented it like this:
Sub Post (Vin As String)
Dim templist As List
templist=File.ListFiles(File.DirInternal&Vin)
Dim testerr="" As String
Dim re=False As Boolean
For i=0 To templist.Size-1
Sleep(50)
Dim s=templist.Get(i) As String
If...
Hello!
I'm gettin this error but i have no clue of what's happening because it works good for days before happen.
I suspect that is caused by a request that I make inside a handler but I'm not sure.
java.lang.RuntimeException: java.lang.InterruptedException
at...
Updates
Web API Server v2 is available
Version: 1.16
Description: Create Web API Server with CRUD functionalities
Sample application: [B4X] Todo List based on Web API
Template:
Web API Server (1.16).b4xtemplate
Depends on following libraries:
ByteConverter
JavaObject
jServer
Json...
Hi all,
I need to move my app's data (currently stored in a local file using writeMap) to the cloud so my users can share it between devices and family members. I'm looking for some tips on how to do this. CloudKVS seems like the best solution at this point.
I don't know much about the server...
Many years ago I needed to sniff a connection and I didn't have a free sniffer available and I didn't know how to create one .... So after a long reflection I decided to create a Proxy Server in order to direct all the output of my pc to the server and sniff traffic.
It was my first proxy server...
This example downloads a file from a server folder (here I use a folder in htdocs on my apache server) and saves it to a file on the file system. Tested with 700KB files. Set headers (browse the www how to set up headers or credentials). Note that the ESP32 filesystem is quite slow. Downloading...
It is a personal project of mine that I started as a hobby on B4i and it has become an interesting project, so that I have modified it to be multiplatform.
It is an http server, which allows a browser to navigate on html pages stored on the device. In addition, dynamic pages can also be...
Hi all, i am working on a personal project where I have a B4J Non-UI app running on a google cloud Virtual Machine, the app receives requests with a TokenID and message parameters which then are sent to the firebase messaging API, this works just fine, but i am having a hard time understanding...
Hi!
I'm developing an api to interact with mssql.
Now I'm trying to generate a PDF file with an external exe, to do so I call shell.run an powershell script and wait for it to close to write a response, but while the external exe is running the server not respond any other request.
s.Initialize...
I started developing a version of the HttpServer Library for iOs. It is still a beta version and not complete, but already functional. You can start using it to test it. Includes WebSocket and QueryElement implementation
Digest Auth will be added in the future. I have arrived at a first version...
On Windows 10, I'm running the server app from this thread. It's working fine.
How do I stop it? I'm not sure what process it is in Windows Task Manager, and I shut down B4J IDE, but the server is apparently still running, as the site continues to be served at the default URL.
Hi everyone, i'm trying to use FTP to upload multiple files to the server.
I do it one by one, i want to show a progress bar, so i did like so:
'This function uploads the files (stored in the list) to the server base'
Public Sub CaricaFoto
Log(filenamelist)
currentTotalFiles =...
This is the full source code for B4XQuiz server.
SQL script to generate database in post #2
For B4XQuiz client app, please check: https://www.b4x.com/android/forum/threads/b4jquiz-desktop-app.124202/
Update
It is now easier to create Web API Server using B4X Template
Check...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.