Hi All,
I am uploading image into database.
when i am uploading image i want to add watermark image(logo) on the uploaded image
i am using below code for image uploading
private void AddUserImage()
{
ProfileBAL ob = new ProfileBAL();
ob.UserId = Convert.ToInt32(Session["UserId"].ToString());
Byte[] imgByte = null;
if (fuImageUpload.HasFile && fuImageUpload.PostedFile != null)
{
HttpPostedFile File = fuImageUpload.PostedFile;
imgByte = new Byte[File.ContentLength];
File.InputStream.Read(imgByte, 0, File.ContentLength);
}
else
{
imgByte = File.ReadAllBytes(Server.MapPath("~/images/user.png"));
}
ob.ImageValue = imgByte;
ob.IsProfilePic = 0;
ob.ImageEntryDate = DateTime.Now;
ob.IsImageActive = 1;
ob.ImageCap ...
Go to the complete details ...