I don’t have a Java code sample for that but I do have several JS ones;
This uses a sample code from the webrtc project to capture the webcam input and ingest the blob directly to Kaltura so that no additional server side code is needed:
This example uses the resumablejs lib to get a file from the user via a HTML form, split it into smaller chunks and upload it to Kaltura:
again, pure JS, not server side code is needed.
Hope that helps. If not, please provide your full code sample and I’ll see what I can do to help you further.