开发者

Web cam integration in .net MVC

I am a new bee to this .net MVC basically i am from PHP. I am trying to integrate web cam in my MVC app. I am using Flash to integrate it, I have written an action script to capture the image from web cam, but i am unable to upload it to DB. I tried with communicating javascript and and actionsctipt but its not working out for me. Any valuable inputs for me is 开发者_开发知识库appreciated

Plz help me anybody....... :(

Sameer Joshi


You'll need to post the file from your Flash applet to a .NET page / service / http handler / MVC Action which will actually write the image to your DB.

I would suggest simply posting the file to an appropriate action on an appropriate controller. An action along the lines of (assuming this is in the "Files" Controller)

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult  SaveFile(HttpPostedFile uploadedFile)
{
    // write file to DB / save to disk here
    RedirectToAction(......);
}

So from your Flash applet, you'd post the file to www.site.com/files/savefile


You may also check Silverlight 4 support for microphone and webcam.

Webcam and Microphone Showcase

George.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜