c# - Streaming jpegs via a web service -
I am capturing jpegs from an IP camera. I'm uploading it through a web service on my server. Then I render an image on a canvas. A user can see the speed through a browser.
I was using 4 IP cameras on each channel 360x288 resolution. Byte array size is usually 15 kb.
Switching to an IP camera with resolution of 720x576, payload of byte array for 4x multiplied single camera of 360x288.
I looked into this question and answered it here:
The person who answered the hidden shows that not using a byte array at all We do. Just stream it At present, I am using the WCF TCP binding and I was wondering how can I implement this streaming option in this setup?
How do I use it for continuous pictures (as opposed to a video file)?
How does the code look? I'm googling as my type, but what big bit array would be split into 2 smaller and upload seperalty and then recombine on server would be better?
I am using c #
I will suggest the streaming approach Because it is very easy to go through all the tasks in the reconstruction of the image file on server side.
Support for the Transfer Mode of the Net TCPbending stream The main limit is that you can not use the security mode of the message.
You will configure it:
& lt; Configuration & gt; & Lt; System.serviceModel & gt; & Lt; Services & gt; & Lt; Service name = "Photo Supply Service" & gt; & Lt; Endpoint name = "" binding = "netTcpBinding" address = "net.tcp: // localhost: 8000" contract = "ipoopload service" binding configuration = "streaming tcpbinding" /> & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Binding & gt; & Lt; NetTcpBinding & gt; & Lt; Compulsive name = "streamed picped" transfer mode = "streamed" MaxRayserveSyses = "2147483647" Maxbfarseczes = "65536" /> & Lt; / NetTcpBinding & gt; & Lt; / Binding & gt; & Lt; /system.serviceModel> & Lt; / Configuration & gt;
Comments
Post a Comment