sensenmercado / jpegcam

Automatically exported from code.google.com/p/jpegcam
GNU Lesser General Public License v3.0
0 stars 0 forks source link

jpegcam help #67

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
string strFile = DateTime.Now.ToString("dd_MMM_yymmss") + ".jpg";
        FileStream log = new FileStream(Server.MapPath("~/upload/" + strFile),
         FileMode.OpenOrCreate);
        byte[] buffer = new byte[1024];
        int c;
        while ((c = Request.InputStream.Read(buffer, 0, buffer.Length)) > 0)
        {
            log.Write(buffer, 0, c);
        }

        log.Close();

--------------------------------------------------------------------------------
-----
above is my code and working fine when i write these code on "Page_Load" 
method. But it creates one file when i run the application which contains no 
image preview and when i click on "capture" then again it creates file having 
the image preview..i don't want to create two file for the same purpose..I 
write the code in ASP Button event also but it is not working. it creates only 
one file having no image preview...please help me.. 

Original issue reported on code.google.com by jitendra...@gmail.com on 1 Jul 2013 at 5:22

GoogleCodeExporter commented 8 years ago
Sorry, I have never used C# or ASP.net.  I cannot help you.

Please try this instead: https://github.com/Digigizmo/JS-Webcam

Original comment by jhuck...@gmail.com on 1 Jul 2013 at 5:23