i encounter a problem when i debug the website and the error state that must declare the scalar variable “@UserId” and this my code
[SIZE=2]
connect.Open();
cmd.Parameters.AddWithValue([/SIZE][SIZE=2][COLOR=#800000]"@UserId"[/COLOR][/SIZE][SIZE=2], userid);
[/SIZE]MemoryStream stream = new Memorystream();
SqlCommand command = new SqlCommand(“SELECT CompanyLogo” from CompleteUserDetails where userid = @UserId);
byte[] storedImage = (byte[])command.ExecuteScalar();
[SIZE=2]stream.Write(storedImage, 0, storedImage.Length);
[/SIZE][SIZE=2][COLOR=#008080]Bitmap[/COLOR][/SIZE][SIZE=2] bitmap = [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#008080]Bitmap[/COLOR][/SIZE]SIZE=2;
Response.ContentType = [/SIZE][SIZE=2][COLOR=#800000]“Image/jpeg”[/COLOR][/SIZE][SIZE=2];
bitmap.Save(Response.OutputStream, System.Drawing.Imaging.[/SIZE][SIZE=2][COLOR=#008080]ImageFormat[/COLOR][/SIZE][SIZE=2].Jpeg);
cmd.Parameters.AddWithValue([/SIZE][SIZE=2][COLOR=#800000]"@CompanyLogo"[/COLOR][/SIZE][SIZE=2], image);
cmd.ExecuteNonQuery();
connect.Close();
Pls reply me if u know how to solve the problem, i will appriecate ur help…=D
[/SIZE]