【发布时间】: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