0

please help me for web cam integration in mvc 3.0 in asp.net with code. This is my C# code body.

public ActionResult UploadWebCamPic(string ImageData)
{
    byte[] upImg = null;
    WebImage wi = new WebImage(Convert.FromBase64String(ImageData));
    upImg = wi.GetBytes("png");
    //Get a data Context and you now have the image in PNG format
    //in the upImg byte[] that you can store in your DB.
    return Json("OK");
}

And here is my JavaScript Code.
Javascript Code

namespace webimage not found error is coming

Help would be appreciated. Thanks !!

neeraj
  • 1
  • 2

1 Answers1

0

Your project is making a reference to a class called WebImage but you either haven't imported the namespace for that class or you're missing an assembly reference.

Dai
  • 141,631
  • 28
  • 261
  • 374