Android Question how to send byte array stream to web client? by JS

hears

Active Member
Licensed User
Longtime User
here is web side JavaScript codes



var oReq = new XMLHttpRequest();
oReq.open("GET", "192.168.1.120", true);
oReq.responseType = "blob";

oReq.onload = function(oEvent) {
var blob = oReq.response;
// ...
};

oReq.send();


in b4a how to send ?for example mic PCM stream.
 

hears

Active Member
Licensed User
Longtime User
This JS code creates a http request. You should use HttpJob.Download to create a similar request.
i want post byte stream to web client. it is a living byte stream i read from mic.
 
Last edited:
Upvote 0
Top