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
Original issue reported on code.google.com by
jitendra...@gmail.com
on 1 Jul 2013 at 5:22