EXIF_TAG_XPCOMMENT is a final constant which cannot be modified

package org.apache.commons.imaging.formats.tiff.constants;
public interface MicrosoftTagConstants {
    public static final TagInfoXpString EXIF_TAG_XPCOMMENT = new 
TagInfoXpString(
            "XPComment", 0x9c9c, -1,
            TiffDirectoryType.EXIF_DIRECTORY_IFD0);

does this not conform to your understanding..
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.


> Date: Tue, 31 Jul 2012 16:45:35 -0700
> From: tiers...@gmail.com
> To: user@commons.apache.org
> Subject: Re: [sanselan] Writing EXIF data to JPEG
> 
> Hi
> 
> @Kasper did you get things working??
> 
> I'm trying to write an android application that lets me read and write user
> comments in JPEG files.
> I'm using sanselan since there is no user comments field in the Android
> ExifInterface API. The issue is that the USER_COMMENT and the XPCOMMENT
> remain unchanged.
> 
> Here is part of my code
> 
> IImageMetadata meta = null;
> meta = Sanselan.getMetadata(jpegImageFile);
> JpegImageMetadata jpegMetadata = (JpegImageMetadata) meta;
> TiffOutputSet set = new
> TiffOutputSet(TiffConstants.BYTE_ORDER_LITTLE_ENDIAN);
>       
> byte[] bytesXPComment =
>     
> ExifTagConstants.EXIF_TAG_XPCOMMENT.encodeValue(TiffFieldTypeConstants.FIELD_TYPE_ASCII,
>                       "My xp comments", set.byteOrder);
> TiffOutputField xpcommentField = new
>                       TiffOutputField(ExifTagConstants.EXIF_TAG_XPCOMMENT,
>                       ExifTagConstants.EXIF_TAG_XPCOMMENT.dataTypes[0],
> bytesXPComment.length,
>                       bytesXPComment);
> set.getOrCreateRootDirectory().add(xpcommentField);
>               
> byte[] bytesUserComment =
>    
> ExifTagConstants.EXIF_TAG_USER_COMMENT.encodeValue(TiffFieldTypeConstants.FIELD_TYPE_ASCII,
>                       "My user comments", set.byteOrder);
> TiffOutputField usercommentField = new
>                       TiffOutputField(ExifTagConstants.EXIF_TAG_USER_COMMENT,
>                       ExifTagConstants.EXIF_TAG_USER_COMMENT.dataTypes[0],
> bytesUserComment.length,
>                       bytesUserComment);
> set.getOrCreateRootDirectory().add(usercommentField);
> 
> Thanking you in advance. 
> 
> 
> 
> --
> View this message in context: 
> http://apache-commons.680414.n4.nabble.com/sanselan-Writing-EXIF-data-to-JPEG-tp4451598p4637450.html
> Sent from the Commons - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
> 
                                          

Reply via email to