0

I have a Data Access Layer

public void AddPartyAsIndividual(AddAnIndividual Student)
{
    using (SqlConnection con = new SqlConnection(ConnString))
    {
        SqlCommand cmd = new SqlCommand("AddIndividualParty", con);
        cmd.CommandType = CommandType.StoredProcedure;

        md.Parameters.AddWithValue("@Student_Image", STudent.StudentImage);

        if (con.State == ConnectionState.Closed)
        {
            con.Open();
            cmd.ExecuteNonQuery();
        }
    }
2
  • 2
    What's the question exactly? Commented May 26, 2013 at 22:20
  • 1
    a DAL, is an extra library that we use to help us with the database actions. Now your question is very poor, nether I see any dal. What error did you have ? where this is not work ?. what is the store procedure ? what DAL did you use ? Commented May 26, 2013 at 22:23

1 Answer 1

1

Take a look at the following Codeproject article. It demonstrates how to store and retrieve images via SQL Server. The example used is a Winforms client, but the code can be adapted to any project type.

Storing and Retrieving Images from SQL Server Using Strored Procedures and C#.net

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.