Invisible watermark - to be built INSIDE the images, how?

Lightroom friends and all others,
I use Adobe Lightroom 2.3, Adobe Design Premium CS4 operating with latest Macintosh system architecture version, OSX 10.5.6, using MBP 17" laptop and MacPro.
I tried to Google on the topic, but most seems to show invisible watermark softwares for Windows-based platform. I have also went into three or four links, but came out for Windows even Google failed to reflect the search query result I asked for MAC. (sighs)
I would appreciate some heads up, techniques and if any standalone application or plug-in I can purchase, let me know with link etc.
Thanks. Brian

Just slightly off topic...just curious as I don't intend to use Digimarc but...Is the Digimarc filter supposed to be in the 64bit version of PS CS4? I don't see it there but I do see it in the 32 bit version. That's on both my desktop and laptop with Design Premium installed.

Similar Messages

  • All of a sudden, when I'm cropping an image in Photoshop CS6, I get a spiral curl inside the image while I'm resizing it. I've never had this before and it's a bit annoying. How do I get rid of it?

    I've been using Photoshop CS6 for a few years and have done tons of cropping but never before have I had this spiral curl inside the image.  How do I get rid of it and get back to the normal resizing/cropping of an image?

    Verify your settings in the options bar.

  • HT200285 I want to change my wallpaper to an image that was available before I upgraded to IOS 8.1.3 - a close-up image of long reedy  grasses with hazy light in the background. Greyish hues. Where can find the image & how do I get it back on my phone?

    I want to change my wallpaper to an image that was available
    before I upgraded to IOS 8.1.3 - a close-up image of long reedy  grasses with hazy light in the background.
    Greyish hues. Where can find the image & how do I get it back on my phone?

    I want to change my wallpaper to an image that was available
    before I upgraded to IOS 8.1.3 - a close-up image of long reedy  grasses with hazy light in the background.
    Greyish hues. Where can find the image & how do I get it back on my phone?

  • There is a grey blob growing on the corner of my ipod inside the screen. how do i fix it? help

    There is a grey blob growing on the corner of my ipod inside the screen. how do i fix it? help I have already replaced the screen once but it has stayed the same.

    Can you post a photo?
    Form yo description it seems like a problem with the display/screen
    What model iPod do you have?
    I ask because in the earlier one the top screen/digitizer is separate from the LCD display.
    Just what was replaced?

  • Business rules inside the dabase - how to avoid

    Dears,
    I have a friend who is working on our project and he is an
    Oracle DBA. The problem is that he's been very stubborn when it
    comes to the app's business rules. He insists that all of the
    business rules should be inside the database, represented by
    triggers, stored procedures and the likes.
    Even the applications's parameters should go into the database,
    according to him. "Property files ? Hell no !"
    I tried to convince him of the importance of OO design principles,
    abstraction, blah blah blah but he won't listen.
    Does any of you guys know of a link or an article available on
    the web that addresses this discussion ?
    I wanted to persuade him, instead of forcing him to accept our
    design decisions.
    I mean, I know we all have to be reasonable but I wanted to
    have something written by some of the OO gurus, it would be
    easier...
    Thanks a lot

    Finding a case study for what you speak will not be easy, and I suspect will do little to sway the opinion of your DBA. If you do find something, please post it to the list here.
    Here are the fundamental problems with his approach (feel free to use these arguments against him):
    1) Business logic is hidden / spread across multiple tiers. This is a biggie. If you are using triggers, etc you have business logic that is spread across both the actual code level and across the DB. For a developer that is going to implement a change you have effectively doubled the cost of that change. Plus your development team has to be well versed in both Java coding and in SQL / DB specific coding as well - if your DBA is doing proprietary things in Oracle... well, you get the picture.
    2) Changes to DB. If you ever change DB solutions, or even want to switch to a new set of tables, you have to replicate all of that work. There is no real reason for doing that with todays technology - you are just creating more work and making your system(s) less flexible to change and more challenging to migrate.
    3) Object / DB disconnect. When you get into the guts of things, there is a wide gap between what is considered best practices for DB design and what is considered best practices for OO design. This culminates in a lot of work going into how to map objects to DB's and vice versa. The differences between these paradigms can cause huge problems when you are implementing business logic in both tiers. Here is an example:
    Let's say that you have a universal rule that states that you must have a full 9 digit zip code for all addresses. In the object world this type of rule implementation is simple - you simply enforce this rule on your Address object and use it everywhere you need an address. But in the DB world it is a common practice to embed this type of data within other tables. For instance, you have a customer table with address fields. Same thing for employees, vendors, etc.
    Now in order to enforce that 9 digit rule you have to create a stored procedure (or a constraint, whatever) on each of the tables that contains address data. Add a new table with address data? Re-create the rule enforcement.
    4) People - As you had mentioned (or maybe someone else did), most companies follow this formula; coders > DBA's. And they do it for good reason. By making the DBA the gate keeper for all of the rule logic you are increasing your "bus" risk factor (he gets hit by a bus, your company is screwed). Plus he is certainly increasing his own job security (I call this complexity based job security - the more complex I can make my work seem, the less likely anyone is to fire me). If I were to perform a risk assessment here I would definitely want my larger group of coders handling rule logic.
    Hope this helps.
    Jonathan House

  • When I convert a Pages document to pdf black stripes appear on two of the images, how do I get rid of them?

    I've made a catalogue in Pages, but when I convert it to pdf two black horizontal dotted stripes appear on two of the images.
    The images are two rectangular figures I've put in filled with solid blue color. They're not there in the Pages, only when converting to pdf.
    How do I get rid of the stripes? I need to use the catalogue in pdf format to send out, but the stripes are very visible whatever I do.

    The solid blue figures are they just rectangular shapes with the color specified in the Color Picker?
    Or did you fill them with an image?
    Peter

  • I cannot remove embedded barcode from the image. Due to saving compression.

    Hi guys,
    I recreate a thread to prevent confusing on my previous one. Please only reply to this thread thanks.
    Ok, for a start I will give some general description about the application I made.
    I had some problem with the image being compressed while it is saved.
    Because saving an image will cause it to compress and had its pixel valued changed, I could not successfully remove the bardcode that is embedded inside a image(although some of the pixel value will be returned to original normally). I had placed my code below and will accept any opinion that will help me solve the removal of barcode problem.
    What my application does is actually very simple. It will take the pixel value of the area inside the image that will be embed with the barcode first, then it will take the pixel value of the barcode and use the formula (1-alpha * Image pixel value) + (alpha * barcode pixel value) = new pixel value which will contain the barcode that had been embedded inside. The formula works great but when I saved the image the pixel value will change due to compression. On the removal of barcode my application will read every pixel value from the image embedded with barcode (only the area with barcode embedded), then it will go on to read every pixel value of the barcode used for embedding and then use the formula (Embedded image pixel value - (alpha * Barcode pixel value) - (1 - alpha) = original pixel value. But due to the reason that compression will change some of the pixel inside the saved image to drop in its value, the result from the removal formula will be negative and hence caused my result image to become wierd as it will red colors instead of original color on some of its pixel. I tried saving under PNG format which people said to be lossless compression but the result is still the same.
    So I need to ask you guys for opinion or help me find the part where I actually did wrongly and caused the image pixel value to change.
    Thanks. Please proceed and read below for the codes that I used. It is messy and I will sort it out later.
    When alpha is set as 1 the barcode will appear to be overwrite onto the image. But when alpha is set as 0.1 the barcode will appear to be transparent and almost seems to be not there on the image when embedded.
    This is the code I used to retrieve image pixel when embedding:
    public static int[] getImagePixelValue(BufferedImage image, int x, int y){
              //Create an array to store image RGB value
              int[] imageRGB = new int[3];
              //Get height and width from input image
              int imageWidth = image.getWidth();
              int imageHeight = image.getHeight();
              //Get raw RGB value from image
              int imageValue = image.getRGB(x, y);
              //Convert image raw RGB value
              int imageRed = ((image.getRGB(x, y) >> 16) & 0xff);
              int imageGreen = ((image.getRGB(x, y) >> 8) & 0xff);
              int imageBlue = image.getRGB(x, y) & 0xff;
              //Input the converted RGB value into the array
              imageRGB[0] = imageRed;
              imageRGB[1] = imageGreen;
              imageRGB[2] = imageBlue;
              /*//Print out the pixel value to check
              System.out.println("Image red pixel: "+imageRGB[0]);
              System.out.println("Image green pixel: "+imageRGB[1]);
              System.out.println("Image blue pixel: "+imageRGB[2]);*/
              //Return image RGB value
              return imageRGB;
    }This is the code I used to retrieve barcode pixel for embedding:
    public static int[] getWatermarkPixelValue(BufferedImage watermark, int x, int y){
              //Create an array to store watermark RGB value
              int[] watermarkRGB = new int[3];
              //Get height and width from input watermark
              int watermarkWidth = watermark.getWidth();
              int watermarkHeight = watermark.getHeight();
              int watermarkValue = watermark.getRGB(x, y);
              //Convert watermark raw RGB value
              int watermarkRed = ((watermark.getRGB(x, y) >> 16) & 0xff);
              int watermarkGreen = ((watermark.getRGB(x, y) >> 8) & 0xff);
              int watermarkBlue = watermark.getRGB(x, y) & 0xff;
              //Input the converted RGB value into the array
              watermarkRGB[0] = watermarkRed;
              watermarkRGB[1] = watermarkGreen;
              watermarkRGB[2] = watermarkBlue;
              /*//Print out the pixel value to check
              System.out.println("Watermark red pixel: "+watermarkRGB[0]);
              System.out.println("Watermark green pixel: "+watermarkRGB[1]);
              System.out.println("Watermark blue pixel: "+watermarkRGB[2]);*/
              //Return watermark RGB value
              return watermarkRGB;
         }This is the code I used for merging the image pixel and barcode pixel to get the embedded pixel value:
    public static int[] getEmbeddedPixelValue(int[] imagePixelValue, int[] watermarkPixelValue, double alpha){
              //Create a object to hold embedded pixel value
              int[] embeddedRGBValue = new int[3];
              //Change image pixel value into double calculating equation
              double imgRedValue = (double) imagePixelValue[0];
              double imgGreenValue = (double) imagePixelValue[1];
              double imgBlueValue = (double) imagePixelValue[2];
              //Change watermark pixel value into double calculating equation
              double wmRedValue = (double) watermarkPixelValue[0];
              double wmGreenValue = (double) watermarkPixelValue[1];
              double wmBlueValue = (double) watermarkPixelValue[2];
              //Equation for embedding image and watermark together
              double embeddedRed = ((1.0 - alpha) * imgRedValue) + (alpha * wmRedValue);
              double embeddedGreen = ((1.0 - alpha) * imgGreenValue) + (alpha * wmGreenValue);
              double embeddedBlue = ((1.0 - alpha) * imgBlueValue) + (alpha * wmBlueValue);
              //Changing embedded value from double to int
              int embeddedRedValue = (int) embeddedRed;
              int embeddedGreenValue = (int) embeddedGreen;
              int embeddedBlueValue = (int) embeddedBlue;
              //input the embedded RGB value into the array
              embeddedRGBValue[0] = embeddedRedValue;
              embeddedRGBValue[1] = embeddedGreenValue;
              embeddedRGBValue[2] = embeddedBlueValue;
              //Return embedded pixel value
              return embeddedRGBValue;
         }This is the code where I used for the embedding process:
    else if(target == embedButton){
                   String xCoordinate = JOptionPane.showInputDialog(embedButton, "Enter coordinate X", "When you want to embed the watermark?", JOptionPane.QUESTION_MESSAGE);
                   String yCoordinate = JOptionPane.showInputDialog(embedButton, "Enter coordinate Y", "When you want to embed the watermark?", JOptionPane.QUESTION_MESSAGE);
                   int xValue = Integer.parseInt(xCoordinate);
                   int yValue = Integer.parseInt(yCoordinate);
                   int wCounter = 0;
                   int hCounter = 0;
                   //Create file object to be used in embedding and removing watermark
                   File inputImage = new File(imagePath);
                   File inputWatermark = new File(watermarkPath);
                   //Convert string into double for calculation of embedded pixel value
                   try {
                        alphaDouble = Double.valueOf(alphaValue).doubleValue();
                   catch (NumberFormatException nfe) {
                        System.out.println("NumberFormatException: " + nfe.getMessage());
                   try{
                        //Define selected image as testPic and make java read the file selected
                        BufferedImage image= ImageIO.read(inputImage);
                        BufferedImage watermark= ImageIO.read(inputWatermark);
                        BufferedImage testing;
                        //Get height and width value from the selected image
                        int imageWidth = image.getWidth();
                        int imageHeight = image.getHeight();
                        //Get height and width value from the selected barcode
                        int watermarkWidth = watermark.getWidth();
                        int watermarkHeight = watermark.getHeight();
                        int totalWidth = watermarkWidth + xValue;
                        int totalHeight = watermarkHeight + yValue;
                        //Use nested for loop to get RGB value from every pixel that the barcode will be embedded in the selected image
                        if(totalWidth <= imageWidth && totalHeight <= imageHeight){
                             for (int h = yValue ; h < totalHeight; h++){
                                  for (int w = xValue; w < totalWidth; w++){
                                       int[] imagePixelValue = getImagePixelValue(image, w, h);
                                       int[] watermarkPixelValue = getWatermarkPixelValue(watermark, wCounter, hCounter);
                                       int[] embeddedPixelRGBValue = getEmbeddedPixelValue(imagePixelValue, watermarkPixelValue, alphaDouble);
                                       setRed(image, w, h, embeddedPixelRGBValue[0]);
                                       setGreen(image, w, h, embeddedPixelRGBValue[1]);
                                       setBlue(image, w, h, embeddedPixelRGBValue[2]);
                                       wCounter++;
                                       if(wCounter == watermarkWidth){
                                            wCounter = 0;
                                            hCounter++;
                        else{
                             JOptionPane.showMessageDialog(embedButton, "The watermark cannot be embedded at the coordinates.");
                        tempImage = image;
                        imageIcon = new ImageIcon(tempImage);
                        labelImage.setIcon(imageIcon);
                        imagePanel.add(labelImage);
                        container.add(imagePanel, BorderLayout.CENTER);
                        setVisible(true);
                        System.out.println("Embedding completed");
                   catch(Exception errorEmbedding){
                        //If there is any error, the try and catch function will tell you the error
                        System.out.println("The following error occured: "+errorEmbedding);
              }This is the code I use to save the image that had been embedded with the barcode:
    else if(target == saveAction){
                   JFileChooser chooser = new JFileChooser();
                   FileNameExtensionFilter filter = new FileNameExtensionFilter("JPG & GIF Images", "jpg", "gif");
                   chooser.setFileFilter(filter);
                   chooser.setCurrentDirectory(new File("."));
                   int returnVal = chooser.showSaveDialog(getParent());
                   if(returnVal == JFileChooser.APPROVE_OPTION) {
                        String name = chooser.getSelectedFile().getAbsolutePath();
                        //Create a string instant to hold outputImage path name
                        String saveFile = chooser.getSelectedFile().getName()+"."+fileType;
                        //Create file output to decide what name will be used to save the file
                        File outputImage = new File(saveFile);
                        try{
                             //Save the file with the name used
                             ImageIO.write((RenderedImage) tempImage,fileType,outputImage);
                        catch(Exception errorSaving){
                             //If there is any error, the try and catch function will tell you the error
                             System.out.println("The following error occured: "+errorSaving);
                   else{
              }This is the code I used for removal process of barcode:
    else if(target == removeButton){
                   //Create file object to be used in embedding and removing watermark
                   File inputImage = new File("removalTesting.jpg");
                   //File inputWatermark = new File(watermarkPath);
                   //Used a defined barcode for testing of removing barcode from embedded image
                   File inputWatermark = new File("barcode.jpg");
                   /*//Convert string into double for calculation of embedded pixel value
                   try {
                        alphaDouble = Double.valueOf(alphaValue).doubleValue();
                   catch (NumberFormatException nfe) {
                        System.out.println("NumberFormatException: " + nfe.getMessage());
                   //Used a defined alpha value for testing of removing barcode from embedded image
                   //alphaDouble = 0.5;
                   //Create x and y value for the starting coordinates of barcode embedded in the embedded image
                   int xValue = 0;
                   int yValue = 0;
                   int wCounter = 0;
                   int hCounter = 0;
                   try{
                        //Define selected image as testPic and make java read the file selected
                        BufferedImage image= ImageIO.read(inputImage);
                        BufferedImage watermark= ImageIO.read(inputWatermark);
                        //Get height and width value from the selected image
                        int imageWidth = image.getWidth();
                        int imageHeight = image.getHeight();
                        //Get height and width value from the selected barcode
                        int watermarkWidth = watermark.getWidth();
                        int watermarkHeight = watermark.getHeight();
                        int totalWidth = watermarkWidth + xValue;
                        int totalHeight = watermarkHeight + yValue;
                        //Use nested for loop to get RGB value from every pixel that the barcode had been embedded in the embedded image
                        if(totalWidth <= imageWidth && totalHeight <= imageHeight){
                             for (int h = yValue ; h < totalHeight; h++){
                                  for (int w = xValue; w < totalWidth; w++){
                                       int[] imagePixelValue = getImagePixelValue(image, w, h);
                                       int[] watermarkPixelValue = getWatermarkPixelValue(watermark, wCounter, hCounter);
                                       int[] removedPixelRGBValue = getOriginalImagePixelValue(imagePixelValue, watermarkPixelValue, alphaDouble);
                                       setRed(image, w, h, removedPixelRGBValue[0]);
                                       setGreen(image, w, h, removedPixelRGBValue[1]);
                                       setBlue(image, w, h, removedPixelRGBValue[2]);
                                       wCounter++;
                                       if(wCounter == watermarkWidth){
                                            wCounter = 0;
                                            hCounter++;
                        tempImage = image;
                        imageIcon = new ImageIcon(tempImage);
                        labelImage.setIcon(imageIcon);
                        imagePanel.add(labelImage);
                        container.add(imagePanel, BorderLayout.CENTER);
                        setVisible(true);
                        System.out.println("Embedding completed");
                   catch(Exception errorEmbedding){
                        //If there is any error, the try and catch function will tell you the error
                        System.out.println("The following error occured: "+errorEmbedding);
              }Sorry if the codes are in a mess, I did not had the time to sort it out yet but most likely do it when I got the removal of barcode done.
    Follow this link to have a look of the result I see in my application when I got the barcode embedded into the image I selected:
    [http://img356.imageshack.us/my.php?image=beforeremovalresultmg2.jpg]
    Follow this link to have a look of the result I see in my application after I got the barcode removed:
    [http://img523.imageshack.us/my.php?image=removalresultmx4.jpg]
    As you can see from the link, after I remove the barcode from the image. Some of the pixel actually went back to normal in the barcode area when the the barcode is embedded into the image. But some pixel in the barcode area had its value changed due to compression when I save the image file I think.
    Anyone can help me find out the problem?
    Thanks.

    KamenRider wrote:
    I suspect the problem lies in the code when I save the image. Because people said that PNG was loseless compression but when I saved in PNG some of the pixel went back to normal while some did not. This is obviously the cause from changing of pixel value when I saved the image.You are almost certainly wrong. This is trivially easy to check. Print out the color of a certain pixel immediately before you save it. Open the saved PNG in your favorite image manipulation program and check the saved value of that same pixel. When you re-load the saved PNG, print out the color again. It should be unchanged.
    Thanks you for trying to help me spot the problem but the formula is correct. The alpha value i used in my application is used to set the transparency of the barcode that will be embedded in the image. Hence, when alpha = 1 the new pixel value should be the barcode value. ^^The formula isn't wrong, it's just not doing what you think it's doing. Remember that you're working with ints here, not floating point numbers, so they have finite precision. When you case from double to int, fractions are dropped. As morgalr pointed out, your formula is:
    (1-alpha * Image pixel value) + (alpha * barcode pixel value) = new pixel value You didn't show us the code for getOriginalImagePixelValue but I imagine it's:
    original pixel value = (new pixel value - alpha * barcode pixel value) / (1 - alpha)On a piece of paper, take alpha = 0.9, image pixel = 17 and barcode pixel = 100. Calculate out what you should get for new pixel value and then calculate what you should get for original pixel value. You will find they don't match.

  • Invisible Watermark is destroyed by Flash

    I have signed my images with an invisible watermark. But when I imported them into Flash and created and .swf file. The invisible watermark was destroyed, probably by the compression. I set the compression up to 90% but with the same result.
    Has anybody an idea how I can establish an invisible watermark with Flash?
    @developers: I think it will be a good feature for the future if Flash can create an invisible watermark by itself.
    Looking forward to answers and solutions.
    Photox24

    I just did a security update and when I plugged in my CF Card it started doing it again! Same error.
    What the *&#$*&^ is going on?
    The only way I can safely import photos is to plug the CF Card into my laptop running Snow Leopard and import across WIFI. It took long enough to import via USB, now I have to go through WIFI?
    Is this how it works on Windows?

  • How to automatically remove the wiki page's images from the Images library , when a wiki page is deleted

    I have noted the following strange behavior inside my Publishing enterprise wiki site collection. Now by default when I create a new wiki page and I add Pictures to it, the pictures will be saved under the “Images” library and will be inside a unique folder
    that have its name similar to the page name.
    But when users delete the picture from the wiki page or they delete the whole wiki page, then the related folder inside the “Images” library will not be removed. So can anyone advice if there is a way to automatically remove the page’s pictures
    folder from the Images library when the page is deleted? as currently i might end up having many pictures inside the Images library which are not linked to a wiki page, and they will waste my server desk space...

    I think, not sure, there's no out-of-the-box solution in SharePoint for this problem. So I can only think of custom solution:
    In event Receiver, ItemDeleting, you can delete images. The only downside is if some other pages are referring the images..... you need to check somehow which is quite time-consuming operations if you have thousand of pages in wiki library
    A timer job, that will run periodically, every day or week, and clean all unused images. 
    Hide the default delete button and add your own. And then using your own custom layout page, show a 'configuration dialog' to user if they want to delete both page and images.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com
    Please do not tell me this is not supported out of the ox ,,,,, i that i should handle this process by myself !!! and SharePoint does not support this feature .... this is another  problem i should include in my list .....

  • How the data is embedded in the image

    please explain this code clearly !!! how the file is embedded inside the image and retrieved back !!!
     Private Sub btn4(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NLabel4.Click
            Using O As New OpenFileDialog With {.Filter = "(Image Files)|*.jpg;*.png;*.bmp;*.gif;*.ico|Jpg, | *.jpg|Png, | *.png|Bmp, | *.bmp|Gif, | *.gif|Ico | *.ico", .Multiselect = False, .Title = "Select image"}
                If O.ShowDialog = 1 Then
                    Try
                        Using FS As New IO.FileStream(O.FileName, IO.FileMode.Open)
                            FS.Seek(0, IO.SeekOrigin.End)
                            While Not FS.ReadByte = Asc("|")
                                FS.Position -= 2
                            End While
                            Dim s As String = Nothing
                            While Not FS.Position = FS.Length - 4
                                s &= Chr(FS.ReadByte.ToString)
                            End While
                            Dim Ext As String = Nothing
                            FS.Seek(0, IO.SeekOrigin.End)
                            While Not FS.ReadByte = Asc("*")
                                FS.Position -= 2
                            End While
                            While Not FS.Position = FS.Length
                                Ext &= Chr(FS.ReadByte.ToString)
                            End While
                            FS.Seek(FS.Length - ((s.Length + s) + 5), IO.SeekOrigin.Begin)
                            Using sfd As New SaveFileDialog With {.DefaultExt = Ext, .Filter = "*." & Ext & " | *." & Ext}
                                If sfd.ShowDialog = 1 Then
                                    Using FSw As New IO.FileStream(sfd.FileName, IO.FileMode.Create)
                                        While Not FS.Position = FS.Length - (s.Length + 5)
                                            FSw.WriteByte(FS.ReadByte)
                                        End While
                                    End Using
                                End If
                            End Using
                        End Using
                    Catch ex As Exception
                        MessageBox.Show("There was an error!" & vbNewLine & vbNewLine & "The application will now close.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
                        Me.Close()
                    End Try
                End If
            End Using
        End Sub
        Private Sub btn3(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NLabel3.Click
            Dim ext As String = TextBox1.Text.Substring(TextBox1.Text.LastIndexOf(".") + 1)
            Using SFD As New SaveFileDialog With {.DefaultExt = ext, .Filter = "*." & ext & " | *." & ext}
                If SFD.ShowDialog = 1 Then
                    Try
                        Dim ImageBytes() As Byte = IO.File.ReadAllBytes(TextBox1.Text)
                        Dim FileBytes() As Byte = IO.File.ReadAllBytes(TextBox2.Text)
                        Dim FS As New IO.FileStream(SFD.FileName, IO.FileMode.CreateNew)
                        FS.Write(ImageBytes, 0, ImageBytes.Length)
                        FS.Write(FileBytes, 0, FileBytes.Length)
                        FS.WriteByte(Asc("|"))
                        Dim FileSize() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(New IO.FileInfo(TextBox2.Text).Length)
                        FS.Write(FileSize, 0, FileSize.Length)
                        FS.WriteByte(Asc("*"))
                        Dim Extention() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(TextBox2.Text.Substring(TextBox2.Text.LastIndexOf(".") + 1))
                        FS.Write(Extention, 0, Extention.Length)
                        FS.Close()
                        FS.Dispose()
                        MsgBox("Done")
                    Catch ex As Exception
                        MessageBox.Show("There was an error!" & vbNewLine & vbNewLine & "The application will now close.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
                        Me.Close()
                    End Try
                End If
            End Using
        End Sub

    1. the new file which we are creating will be in this order or not 
    file_extension * data_file_size | data_file image_file
    No.  The file will be in the order in which it is written in the writing routine:
    1. Image File
    2. Data File
    3. "|"
    4. Data File Size (ASCII)
    5. "*"
    6. File Extension (ASCII)
    2. explain this snippet .. why we are changing position while we are extract file
     While Not FS.ReadByte = Asc("|")
                                FS.Position -= 2
                            End While
                            Dim s As String = Nothing
                            While Not FS.Position = FS.Length - 4
                                s &= Chr(FS.ReadByte.ToString)
                            End While
                            Dim Ext As String = Nothing
                            FS.Seek(0, IO.SeekOrigin.End)
                            While Not FS.ReadByte = Asc("*")
                                FS.Position -= 2
                            End While
                            While Not FS.Position = FS.Length
                                Ext &= Chr(FS.ReadByte.ToString)
                            End While
                            FS.Seek(FS.Length - ((s.Length + s) + 5), IO.SeekOrigin.Begin)
    The file read position is recalculated before each read, depending either on the position of the marker ("|" and "*") or on the length of the data.   That's how each portion is extracted - the position is set to the start of the portion, and that
    portion is read for the correct number of bytes.  The portions are extracted from the end back towards the beginning because the markers can only be guaranteed as unique (they are illegal in a filename extension) when searching backwards.
    3. after combining the files with the image .. how the created image is visible (even we are not using any algorithm)
    That depends on the image file format, but most formats will use header information that describes the location within the file of the various bits of data that are needed to create the image.  The side effect of this is that if there is information
    in the file that is not referenced from this header data then it is simply ignored.  That's what this procedure is relying on - because the new data is appended to the end of the file it will not be referenced from the header data and will be ignored.
    For a complete description of what this code does and why it works you should refer to the original author.

  • Any Way To Put A Saved Watermark You Created On All Your Images At Once?

    I have a whole bunch of pictures that I wanted to put a copyright watermark on.  I created the watermark I in Photoshop and saved it.  Now, I am wondering if there is any way I can apply this watermark to all my images I have?  I know how to use the "Move" tool to move the watermark from its file to the image file, but I have hundreds of images, so it is going to take forever if there is not a quicker way.  Anyone know if there is a quicker way?  Thanks.

    In the Actions palette, create a new action to record yourself adding the watermark to one of your images. When it's in place, save and close the image, then stop the Action. Now go to File=>Automate=>Batch. Select the action you just created and the folder containing the images you wish the watermark to be applied to. When you confirm, Photoshop will repeat what you did and apply a watermark to all your images in that folder automatically.

  • Firefox cannot be found inside the Program Files (x86) when using the shortcut or the actual .exe. I also tried using Regedit.exe and firefox was not there. How do I fix this?

    After I get the error message "Windows cannot find C:\Program Files (x86)\Mozilla Firefox\firefox.exe'. Make sure you typed the name correctly, and then try again." I proceeded to use the Regedit solution but the file was not inside the Image File Executable Options folder. The only file inside of there was iexplorer.exe.

    #Go to [http://www.mozilla.com/en-US/firefox/fx/?ref=logo Download Firefox 4.0.1] and download the installation file to your desktop. You can use Safari to do that, but don't choose to run it.<br><br>
    #Then go to Add/Remove Programs, scroll down to "Mozilla Firefox" and remove it, choosing to keep your bookmarks, customizations etc., (''don't checkmark the box''). If you don't see it anywhere, then it's not installed.<br><br>
    #Assuming it is though, reboot and delete the folder called "Mozilla Firefox" at this location: C:\Program Files\Mozilla Firefox<br><br>
    #Finally run the installation file you downloaded to the desktop earlier.<br>
    Your bookmarks, customizations etc., are maintained in a different location and will become available to you again once you complete the installation.<br><br>

  • HT4946 From the backup folder how can I move the images from there?

    I just backed up my iphone and I went into the back up folder but you cant save the images, how can I do this?

    You would need 3rd party software to extract photos from a backup.  Instead of doing that, just import them from the camera roll using your usb cable: http://support.apple.com/kb/HT4083.

  • How can I find the image file for iTunes album artwork?

    I know how to see the image, how to search for album artwork on the web, and how to save a new or different image. However, I want to be able to find specific images in Finder that are already connected with an album. I am not able to zero in on it. All I find is a collection of folders.

    These things accesible by control clicking (or right clicking with a multibutton mouse) are what are known as contextual menus and are incredibly powerful timesavers.  Try control clicking on things and see what you find. 

  • Error displaying .png image inside the portlet

    Hi all -
    I am having an issue with the remote portlet displaying a certain image file, i.e. .png is not showed up inside the portlet. If someone had dealt with this issue and know a fix, please share that information. THX.
    A simple test war was built and deployed to the WebLogic server with two embedded images, one GIF and another PNG, and in Webcenter ALUI 6.5 a remote portlet/webservice were created to display the image files. The portlet only shows the .gif image and not the .png image?? I am not sure what the issue is with the portlet??

    I am faced with the exact same issue: .png is not showed up inside the portlet. Removing the prefix URL gateway for the portlet web service would work.
    However, in my case, my system is sitting behind a gateway to ensure a secure connection. I can NOT remove the prefix URL gateway on my system. It appears the problem is, if the portlet web service is prefix with a URL gateway, the PNG fie is delivered to the browser with the wrong MIME-type ("text/html" instead of "image/png").
    My web service is deployed on a WebLogic container. Is this a configuration issue in AquaLogic/WebCenter Interactions?
    Any help would be greatly appreciated. Thanks!

Maybe you are looking for