File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes watermark in my webpage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "watermark in my webpage" Watch "watermark in my webpage" New topic
Author

watermark in my webpage

shyamkumar bopannachengalaiah
Ranch Hand

Joined: Dec 30, 2008
Posts: 100
i am developing a application where i am adding a watermark in my webpage .how can i do this by writing a servlet coding and doing it dynamically.

when i browsed in internet i got a servlet code for watermarking . but i am not able to crack the output in my webapplication can you help me in this.




how can i use this code to develop in adding watermark to my application



is there any other way to get watermark in webapplication dynamically
Balagopal Kannampallil
Ranch Hand

Joined: Oct 18, 2004
Posts: 136

Hi,

Please use the code tag correctly. It should be like [code], not <code>.


SCJP 5.0 and now fighting with ExtJS
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I haven't looked too closely, but it looks like you have most of it except for where you load a specific photo
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
By "watermark in my webpage" do you mean a watermark on an image in a web page? If so, the code does most of that.

What does "i am not able to crack the output" mean - what are you trying to do, and what's the result?


Ping & DNS - my free Android networking tools app
shyamkumar bopannachengalaiah
Ranch Hand

Joined: Dec 30, 2008
Posts: 100
Ulf Dittmer wrote:By "watermark in my webpage" do you mean a watermark on an image in a web page? If so, the code does most of that.

What does "i am not able to crack the output" mean - what are you trying to do, and what's the result?


[quote sir from the code i had given i dont know where to insert my file in the code to get the watermark, and i am not able to how use the code to get the water mark in my application.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
Well, the code is a bit strange, but the image file to be watermarked is specified in the "new File" and "new ImageIcon" constructors.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: watermark in my webpage
 
Similar Threads
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Extracting Pixel Data From Fonts
Problem running Servlet
ImageIO.write - TIF and BMP - Zero bytes
Dynamic JPG with java