【问题标题】:Web Cam integration in mvc3mvc3 中的网络摄像头集成
【发布时间】:2012-09-08 14:55:47
【问题描述】:

请帮助我在 asp.net 中的 mvc 3.0 中使用代码集成网络摄像头。 这是我的 C# 代码体。

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");
}

这是我的 JavaScript 代码。
Javascript Code

namespace webimage not found 错误来了

我们将不胜感激。 谢谢!!

【问题讨论】:

标签: asp.net .net asp.net-mvc-3


【解决方案1】:

您的项目正在引用一个名为 WebImage 的类,但您尚未导入该类的命名空间,或者您缺少程序集引用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-01-03
    • 2016-02-19
    • 1970-01-01
    • 1970-01-01
    • 2021-10-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多