Web Forms :: Watermark Image And Save To Database Using C#
May 7, 2015
I want to save water marked image to database.i have done watermarking,but save the image it does not save to database.
Following are my code:
Bitmap original_image = new Bitmap(FileUpload1.FileContent);
string sWaterMark = "reshu";//String to be watermarked
int fontsize = ((original_image.Width * 2) / (sWaterMark.Length * 3));
int x = original_image.Width / 2;
int y = original_image.Height * 9 / 20;
[Code] ....
View 1 Replies
Similar Messages:
Nov 2, 2010
I need to create a database in SQL2005 on a webserver (manually (not in code)), have registered users upload an image to a webserver not overwriting if the filename already exists but to append if required Weekly, I wish to review the uploaded images in the uploaded folder, create a user & add the image(s) into the database programmatically for all users to be able to search / When the image(s) are in the database & are searched or shown (ex: profile shown with all those details/pics displayed but before displaying the pics on the form to watermark them. However, a profile could have 1 pick or it could have 20. I would like to have for example 4 pics being shown then the user to click next till the end of the recordset. Then do the same for another profile. Uploading the file is fine but not to append if exists then maybe I should have an upload date as the filename (haven't decided)
View 2 Replies
Mar 14, 2011
i have a page where the image,logo,position and alpha details are shown in a gridview...and the page has a confirm button...once the user clicks on confirm button[then actual watermarking happens which gets stored in db] it navigates to another page where another gridview is present but it has an additional column [watermarked image] ...the only problem is that when i want to write code for watermarking in the watermark.aspx.cs page
View 3 Replies
Apr 16, 2013
I have filed image type varbinary
I want upload image and show then with click button save
store in db
View 1 Replies
Apr 27, 2014
I used below code for uploading image with fileupload control
string path = Server.MapPath(".") + "../image/estate/image";
string filename = System.IO.Path.GetFileName(fup3.PostedFile.FileName);
string[] validext = { ".jpg"};
string ext = System.IO.Path.GetExtension(fup3.PostedFile.FileName);
if (Array.IndexOf(validext, ext.ToLower()) < 0)
{
Label21.Text = "insert .jpg format";
[code]....
I want if users don't select any image from fileupload control in database it save this image name 'default.jpg'
View 1 Replies
Jan 29, 2011
I have this path
string path = "~//ImageUploadfolder//"+ab;
In string variable, path contain this file ~//ImageUploadfolder//1.jpg .how to save this image to database as image datatype and retrieve from database to image control.
View 2 Replies
Jul 5, 2012
i use fileupload control in my page that save image in my database with binary data is there any way that when i upload file instead of saving binary data it save that imagename in image column?
View 1 Replies
Dec 28, 2011
i want to save image from html page into a folder and save its path into database table. i want to do this with save button and not with fileupload control.
View 1 Replies
May 7, 2015
I used below code to upload image and put watermark on it
protected void BtnUpload_Click(object sender, EventArgs e) {
uploadImageError.Visible = true;
if (fup1.HasFile && fup1.PostedFile.ContentLength < 102400) {
string watermarkText = "behtop.com";
string path = Server.MapPath("~/image/House/product/");
[Code] ....
Problem is when I upload image and click on btnupload it shows image in new window with watermark text but it doesn't save it into host...
I want when I click on btnupload it doesn't show image in new window I want it just uploaded image with watermark into host...
How I can do it?
View 1 Replies
Mar 30, 2010
i have a tabel in database named 'news' , it have a column name 'imgurl' for saving the url of image.
i have a page for manage this tabel, for insert data in this tabel,i should insert image too,
I use Fileupload control,for select an image for my 'newspage' , i don't know how to use it.
i want it upload my picture and save it's url in database.
View 11 Replies
Jan 8, 2013
how can we resize the image in ASP.net n save changes in database ??.
View 1 Replies
Dec 3, 2010
I need to add image as a watermark on an image instead of a text.
I have a small logo that i will place somewhere at the bottom right side of the image, it takes small place.
I need to implement this in C#.
Can I sample code or tutorials on how to get this done?
View 2 Replies
May 7, 2015
Refer link [URL] ....
I put text watermark to images but I want I create image watermark to photos like below ...
how I can do it?
View 1 Replies
Jul 17, 2015
how do i watermark image, example: when a user registers on the website before the user uploads his or her photo there is a default image and when the user brings mouse close to the image it will show "Update profile picture".
View 1 Replies
Dec 3, 2010
How we can set image in the textbox in place of text like as watermark textbox in asp.net.
How it can be possible...
View 10 Replies
Apr 16, 2013
Is there any way in order to remove a watermark from an image? What has to be done is to lose the existing watermark as much as possible and place a new watermark text instead. As the existing watermark is placed diagonally, cutting the image in two equal parts (triangles), I am thinking of possibility to detect the diagonal and then determine the watermark text height (size / dimensions), and after that apply the Gaussian method of blurring (or anything similar) on the determined part. After it's edited, the image would be exposed to a code that would generate the new watermark.Is this possible to do, after all?
View 1 Replies
Nov 19, 2012
In insert.aspx page I have file upload control that users can upload their image and in show.aspx page they can see their images that the uploaded.
I want when users upload their image automatically type BEHTOP.COM On the center of image
View 1 Replies
May 7, 2015
i want to mail water marked image to the user.but i can't do this. i will show my code...
to use this code,the image watermarking is done...buti can't attach this file to the mail.
Bitmap bmpUpload = new Bitmap(FileUpload1.PostedFile.InputStream, false);
Graphics graphicsObj = Graphics.FromImage(bmpUpload);
Brush brush = new SolidBrush(Color.Gray);
Point postionWaterMark = new Point((bmpUpload.Width / 25), (bmpUpload.Height / 35));
[CODE]..
View 1 Replies
May 7, 2015
I used below code for insert watermark to photo
[URL]
here it writes watremark text is straight line (horizental)
How I can rotate text of water mark?
View 1 Replies
Oct 21, 2015
I need to capture and save user signature to database on asp.net webform.
I found this plug-in: [URL]
I downloaded the example project and it is very simple, it has only fews file but I could not understand.
demo here: [URL]
How do I use this on a web-form page, let say on "save" button click postback event, it will save the imageurl of the signature under this format:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAApIAAAE+CAYAAAA+
vvBuAAAgAElEQVR4Xu3de6w1XV0f8K8WvIEiFTAKXhBrab0AxUraaFET0xYxSGrrpSb
UahsjbcUoXhKtIiaaSFSSojHRUP7w0rQGKbZJ00ahN.........
to a string variable so I can save this string to database?
Also how do I use 2 signature fileds in a same page, because I want to capture signature of 2 users.
View 1 Replies
Feb 18, 2010
I have another problem is that I have Placed a file upload control in Empty template of Gridview to have multiple record insert. I have used viewstate to save multiple record into database. But problem is that I am able to find the control but it not giving any value.I have following code.
[Code]....
in above code
[Code]....
View 2 Replies
Jan 29, 2010
How to save an image to the database,also referring binary data from the server to the database
View 1 Replies
Feb 18, 2011
FileUpload img = (FileUpload)UploadImg;
Byte[] imgByte = null;
if (img.HasFile && img.PostedFile!=null)
[code]...
View 1 Replies
Sep 16, 2010
How can I dynamically insert images when user uploads an image file to SQL Server 2005 with C# in ASP.NET? This is to let users upload their profile photos in my web app. Is it very different from how it is done for windows app with C#?
View 3 Replies
Mar 14, 2011
i am working on asp application. i have a user register page and there is a image upload option , if any user upload there image that image "filename + current date" both are save in database. For example i have a table Users and there is a field called UserImage i want to save both "Filename + current date" in that field. What is procedure to save both "Filename + current date" in the database .
View 4 Replies