JQuery webcam Plugin - save image without PHP

前端 未结 4 1688
说谎
说谎 2021-01-07 11:45

I am using JQuery webcam plugin
Here is the home page
It seem very useful, but my problem is I don\'t know how to save image using asp.net (without using php).

4条回答
  •  情书的邮戳
    2021-01-07 11:55

    Switch to this library http://code.google.com/p/jpegcam/ you only need:

    byte[] data = context.Request.BinaryRead(context.Request.TotalBytes);
    File.WriteAllBytes(context.Server.MapPath("~/cam.jpg"), data);
    

提交回复
热议问题