Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

298
Views
display video frames in web page asp.net razor byte [] array

community

I´m trying to display the byte [] array that is taken from the RtspClientSharp.dll into an img tag (HTML), but this only works when the page in loading (ASP.NET). What I´m trying to do is to display every frame as faster as the user can watch the video from an ip camera. The way I use to set the image url is String.Format("data:image/png;base64,{0}", Convert.ToBase64String(viewer.imageBytes))

Here is the code:

@{
    ViewData["Title"] = "Home Page";
}

@{
    CameraViewer viewer = new CameraViewer("192.168.0.65"); 
    viewer.Start();      
 }   

<div class="veiwer">  
    @while(!viewer.isDisplayed){}
    @{String imgUrl=String.Format("data:image/png;base64,{0}", Convert.ToBase64String(viewer.imageBytes));}
    <img  src="@imgUrl"/>        
</div>

I have tried using javascript too but it doesn´t works.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!