Toshiba Toshiba Security Camera User Manual


 
TOSHIBA Network Camera - IK-WB15A - SDK (Ver 1.00.SC)
©TOSHIBA Corp. Appendix.A
126
= For JPEG data =
Content-Type: image/jpeg\r\n
Content-Length: <image size>\r\n
\r\n
<JPEG image data>\r\n
= For Audio data =
Content-Type: audio/wav\r\n
Content-Length: <image size>\r\n
\r\n
<WAV image data>\r\n
Each <image fields> and an output message from the streaming execution task are separated by a unique 32-byte synchronization ID
based on each occasion which is called boundary.
Regarding the image data receiving status, it can be judged by enclosing in the boundary whether the data indicated in Length has been
received. If Length does not match with the actual received image size, the image data in this boundary is regarded as incomplete data, so
that an error is notified or the data is discarded, proceeding to receiving processing for the next image data.
--- For termination due to an error ---
If streaming cannot be started due to a parameter error, the data is output in the following fixed format.
HTTP/1.0 200 OK\r\n
Content-Type: multipart/x-mixed-replace;boundary=<32byte-sync>\r\n
\r\n
--<32byte-sync>\r\n
Content-Length: 20\r\n
<stream msg>\r\n
--<32byte-sync>\r\n
Content-Length: 20\r\n
EndOf-getstream.cgi.