Hello friends,
I am working on a project in it I want to capture image and save it on server machine. When I run application on localhost it's work but on server site it can't.
Can any one help me...
Thank you
For converting into image I write this code...
void CreatePhoto() { string strPhoto = Request.Form["imageData"]; //Get the image from flash file byte[] photo = Convert.FromBase64String(strPhoto); FileStream fs = new FileStream(Server.MapPath("Images/Webcam.jpg"), FileMode.OpenOrCreate, FileAccess.Write); BinaryWriter br = new BinaryWriter(fs); br.Write(photo); br.Flush(); br.Close(); fs.Close(); }
Iftikar HussainPosted Aug 21, 2013, 5:13 AM
Regards,
Iftikar
Sumit GhulePosted Aug 21, 2013, 4:32 AM
Sumit GhulePosted Aug 21, 2013, 4:30 AM
Ring ZhongPosted Aug 21, 2013, 3:58 AM
Iftikar HussainPosted Aug 21, 2013, 3:51 AM
In the server you need to have Images folder with read and write access inside your application folder
Regards,
Iftikar
Kunal VaishyaPosted Aug 21, 2013, 3:19 AM
Image directory is there or not if yes then check full read write rights set or not.