We are talking about sending live streaming through api to Wowza Streaming Cloud.
We are trying to achieve this using chunked transfer encoding (pseudo code below), image is according to documentation Base64-encoded string.
Variable req_buffer contains complete envelope with image.
...
utl_http.set_header(http_req, 'Transfer-Encoding', 'chunked');
...
loop
req_buffer2 := null;
req_buffer2 := substr(req_buffer, l_chunkStart, l_chunkLength);
if l_chunkStart = 0 then
utl_http.write_text(http_req, req_buffer2);
else
utl_http.write_text(http_req, req_buffer2);
end if;
if (length(req_buffer2) < l_chunkLength) then
exit;
end if;
l_chunkStart := l_chunkStart + l_chunkLength;
end loop;
...
But the problem is that if it happened that image is split into two or more parts, the second part of image is ignored by Wowza and we see only part of image on the live streaming.