Web Forms :: Create (Add) Transparent Watermark Text To Images (Photo) And Save To Folder (disk)
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
Similar Messages:
May 7, 2015
I used it to put text watermark but font of text is solid I want it has transparency how I can do it?
View 1 Replies
Sep 20, 2015
I want use this watermark: [URL] ....
But I want used in formview, how i change code in C# ?
and this is my FormView:
Asp.net
<asp:FormView ID="FormView1" runat="server" DataKeyNames="id"
DataSourceID="SqlDataSource1" DefaultMode="Insert" Width="1200px">
<InsertItemTemplate>
<table class="style1"><tr>
<td valign="top" class="style5">ناونیشان:</td>
[Code] ....
C#
protected void Upload(object sender, EventArgs e) {
string watermarkText = "© test.com";
//Get the file name.
string fileName = Path.GetFileNameWithoutExtension(FileUpload1.PostedFile.FileName) + ".png";
//Read the File into a Bitmap.
using (Bitmap bmp = new Bitmap(FileUpload1.PostedFile.InputStream, false))
[Code] .....
View 1 Replies
Jan 4, 2014
What is the best way to insert and retrieve images like :
In the database in binary form retrieve it with imagehandler, or
In the database by saving the path of the folder of the images and retrieve it, or
by saving the images directly to the folder and retrieve it...
View 1 Replies
Sep 19, 2012
Is there a way to upload image and save to folder with watermark of Copyright on image ?
View 1 Replies
Oct 31, 2010
Is there a way to process images once uploaded to my asp.net site, to put a watermark or some text across the image to copyright the images? I would like to do this server-side if possible.The other option I have discovered here [URL] would be to store the images as they are on the server, but to manipulate the display so it appears the image is watermarked . However, this solution is in PHP. Does anyone know a good PHP to VB.NET translator?! Or does anyone have a good suggested link, idea or code? Or can I add PHP to my ASP.NET site?
View 4 Replies
Nov 12, 2013
I want to save zipped file on server disk using DotNetZip in ASP.Net .... This code creates zip and download it in client side download folder..
ZipFile zip = new ZipFile();
List<Attachment> listattachments = email.Attachments;
int acount = attachments.Count;
for (int i = 0; i < acount; i++)
[Code] ....
View 1 Replies
May 7, 2015
I have tried one article : [URL] ....
In this article pdf is created on button click.
I want to convert .aspx page to .pdf and save it to local folder (on page load).
View 1 Replies
Jul 28, 2010
Let's say I am creating a image hosting website. My potential users will be somewhere around 1 Million, and every user potential has 10,000 images, and I need to serve over 1000 images per second.
So, I bought a diskarray, with 10T storage, SAS 15K SCSI drives.
The problem is: What is the best way to save those files on disk? How to organize the folder structure to make sure NTFS can find one file from a billion files under a huge tree folder quickly? I mean, serve 1000 images per second is non trivial issue. My current website is serving over 100 images per second, and I already see the performance problem: NTFS can't find the file fast enough! And of course, my folder structure is not good enough either.
View 2 Replies
Jan 28, 2011
I am doing a project on digital watermarking. This is the process. The user will choose his image file to upload, chooses his image key(either from the visual studio gallery-folder name is Image Key, or he chooses his own from the directory).
He enters a password, and this password will be embedded into the image uploaded.
Next, there is an option to digitally watermark the image (This is where I am having problems - stuck with the codes)
Here is the work so far, and I couldn't get any further.
FileUpload UI + code behind
[Code]....
[Code]....
WatermarkController (Business Logic)
[Code]....
View 1 Replies
Jan 22, 2011
in asp.net i want the user to chose a photo to upload from their HD . then i want the uploaded photo displayed and an hyperlink option to save or reject this photo. if accepted the filename will be stored in a DB.
the problem is displaying the photo before it has been saved.
I display strFileName which works on my PC but not on my laptop.
[code]
View 4 Replies
Sep 3, 2013
I want to create a text which contain a water mark .....but the condition is when i click inside the tetxbox the watermark want to disapper
View 1 Replies
Aug 18, 2015
[URL]
This Article is so nice.But my requirement is save the PDF on my local
disk without The popup diolog..
View 1 Replies
Aug 8, 2012
How i can download image from sql server and store in a folder?
View 1 Replies
Feb 2, 2010
I am creating transparent images on the fly in a httphandler. But when I run the website in IE 6 I got a gray background insted of a transparent image. If it is not possible to use transparent images in IE6 then how can I use a gif transparent image created with paint.net?
View 3 Replies
Jul 31, 2010
I want to upload images in to a folder in my project and save the URL in the database.
When you add a record into my database you provide title, date added and some other details and there it a file upload control which you browser to a image and it saves the image to a folder in my project, it all works, the record is added and the image is uploaded into the folder, but the problem I have is that there is no link from the record to the image, there is no URL path saved in the record. How do I save the image in the folder and save the URL of the image to the record?
I'm using details view to insert the records and using grid view to view the records.
View 10 Replies
Feb 2, 2011
Do any have links for this type of .gif images.
View 1 Replies
May 11, 2010
I have a master page and I need to give user a option of selecting color like red , blue or green. Once it selected the Background color of an image should be changed from transparent to selected color. How to do it?
View 1 Replies
Jul 12, 2012
i want to bind datalist without database.i have not done it before. i want to bind the datalist dynamically in asp.net.
View 1 Replies
Dec 22, 2010
In a project when user click a button, some data is gotten and written to an excel instance by interop library.
Now, I want that: When excel instance get all data, a save as dialog box muste be open and save this excel instance to user specified path.
Is there a way to do it?
[Code]....
View 2 Replies
Dec 9, 2010
Have a web form that i want to create a folder from input text box.
now this works.
using system.io;
Directory.CreateDirectory(@"C:DATA" + txtName.Text);
which allows me to create the folder in location.
but what I need is to check to see if the folder exist if not create then upload files into the folder if else upload files into the file folder.
View 1 Replies
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
Apr 14, 2013
Show google map with markers and list the address in listview.I have created 20 images of google marker numbered from 1 to 20(Example marker-1.jpg,marker-2.jpg....marker-20.jpg).If i want to display 20 locations in google map with makerimages numbered from 1-20,how can i set the url of the icon in the marker options?Here's the code i have written.
var markers = [
<asp:Repeater ID="rptMarkers" runat="server">
<ItemTemplate>
{
"title": '<%# Eval("Name") %>',
"lat": '<%# Eval("Latitude") %>',
"lng": '<%# Eval("Longitude") %>',
"description": '<%# Eval("Description") %>'
[code]...
View 1 Replies
Jul 1, 2010
I had a code that creates a snapshoot of website and store the snapshoot in a specified folder.When I deployed the app into production server, it creates the image but it does not appear or stored in the specified folder, how I can fix this proble, I wan the snapshoot to be stored in the specified folder when hte app is on the production server .
Code Used to make a snapshoot is attached:
[URL]
View 2 Replies
Jul 30, 2010
New project requires that the server space be displayed and what the total content is of a folder. Where can i find information on how to do this? can someone provide a small sample or links to information i can review.
View 9 Replies