i have used the following code for uploading photo,but dat was not working properly & in IE7 it has much more issues,like preview is not coming before uploading-
static byte[] bydoctemp;
static Int32 intDocLength_img = 0;
Stream objStream_img;
protected void bttn_upload_photo_Click(object sender, EventArgs e)
{
intDocLength_img = FileUpload1.PostedFile.ContentLength;
bydoctemp = new byte[intDocLength_img];
objStream_img = FileUpload1.PostedFile.InputStream;
objStream_img.Read(bydoctemp, 0, intDocLength_img);
}
private static string RandomString()
{
int size = 10;
&nb ...
Go to the complete details ...