i need a web application for multiple image upload by blobs
Loading
i need a web application for multiple image upload by blobs
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandeep KumarPosted Jun 21, 2023, 10:46 AM
I want .Net web api to upload multiple file by form data
public List
DtPhoto.Rows.Add(imagecode);
}
}
try
{
using (SqlConnection con = new SqlConnection(strConnString))
{
using (SqlCommand cmd = new SqlCommand())
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = DBProcedure.SP_InsertUpdatePmsData;
cmd.Parameters.Add("@PmsDataID ", SqlDbType.Int).Value = ID;
cmd.Parameters.Add("@StationID", SqlDbType.Int).Value = StationId;
cmd.Parameters.Add("@UnitID", SqlDbType.Int).Value = UnitId;
cmd.Parameters.Add("@ZoneID", SqlDbType.Int).Value = ZoneId;
cmd.Parameters.Add("@OutageTypeID", SqlDbType.Int).Value = OutageTypeId;
cmd.Parameters.Add("@FinYear", SqlDbType.NVarChar).Value = FinYear;
cmd.Parameters.Add("@PhotoTag", SqlDbType.NVarChar).Value = Photo_Tag;
cmd.Parameters.Add("@ImageList", SqlDbType.Structured).Value = DtPhoto;
cmd.Parameters.Add("@CreatedBy", SqlDbType.Int).Value = UserId;
cmd.Parameters.Add("@ReturnVal", SqlDbType.Int).Value = 0;
/////// cmd.Parameters.Add("@ReturnPmsDataID", SqlDbType.Int).Value = 0;
cmd.Parameters["@ReturnVal"].Direction = ParameterDirection.InputOutput;
// cmd.Parameters["@ReturnPmsDataID"].Direction = ParameterDirection.InputOutput;
cmd.Connection = con;
con.Open();
cmd.ExecuteNonQuery();
returnVal.Add(Convert.ToInt32(cmd.Parameters["@ReturnVal"].Value.ToString()));
//returnVal.Add(Convert.ToInt32(cmd.Parameters["@ReturnPmsDataID"].Value.ToString()));
}
}
}
catch (Exception ex)
{
}
return returnVal;
}
Deepak RawatPosted Jun 21, 2023, 9:40 AM