Omron Forums Support Posted March 14, 2022 Posted March 14, 2022 Below are step by step instructions on what should be done on the client side:1. Open a new project in VisualStudio and verify that the following references are added to the project: using System.Net; using System.Web.Script.Serialization; 2. The next step is to build the url for the web request, using image service from the Cloudlink API and the IP address of the camera. string imageUrl = "http://192.168.188.2/api/v1/image";3. Now we will create the web request object using the url we defined above. The request will be sent to the server. var request = WebRequest.Create(imageUrl);4. In the following step we use WebResponse object for receiving the reply from the server and feed it to a stream object to hold the data: var response = request.GetResponse(); 5. Then get the image data into a stream: var stream = response.GetResponseStream(); 6. The final stage is to show the image data in a PictureBox control on our WinForm. Add a PictureBox control to your Form, then do the following in order to display the image in the PictureBox control: pictureBox1.Image = Bitmap.FromStream(stream, true, true); Quote
Recommended Posts
Top Posters In This Topic
1
Popular Days
Mar 14
1
Top Posters In This Topic
Omron Forums Support 1 post
Popular Days
Mar 14 2022
1 post