Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Kasper Føns
Sorry about the website, I plan on fixing it with the 1.0 release. UserComment is one of the uglier cases, as it uses that GPS string type with a special prefix to distinguish character encodings. Try using TagInfo.Text's encodeValue() method to convert the String to byte[], then pass that to

[daemon] ftp access code as service

2012-03-08 Thread Ahsan Ikram
Hi, I am trying to run a piece of java code that uses apache commons net library to connect to a folder and download some files as a service. The service is installed ok and runs but hangs at the part where it has to connect to a ftp server, no error, no timeouts, just goes silent. Cheers,

Re: [daemon] ftp access code as service

2012-03-08 Thread Mladen Turk
On 03/08/2012 12:25 PM, Ahsan Ikram wrote: Hi, I am trying to run a piece of java code that uses apache commons net library to connect to a folder and download some files as a service. Since you are speaking about 'folder' I presume this is on windows, right? The service is installed ok

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 2:45 PM, Kasper Føns kfo...@gmail.com wrote: Sorry about the website, I plan on fixing it with the 1.0 release. UserComment is one of the uglier cases, as it uses that GPS string type with a special prefix to distinguish character encodings. Try using TagInfo.Text's

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Kasper Føns
I wouldn't count on Windows Explorer to give you the right values. Rather check it against exiftool (www.sno.phy.queensu.ca/~phil/exiftool/): exiftool -a -g1 -u image.tiff Windows Explorer also likes the XP values (eg. EXIF_TAG_XPCOMMENT, EXIF_TAG_XPAUTHOR), maybe try writing those as well?

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Kasper Føns
Windows Explorer also likes the XP values (eg. EXIF_TAG_XPCOMMENT, EXIF_TAG_XPAUTHOR), maybe try writing those as well? Hmm. You seem to be right that explorer likes the XP values. However, I can't figure out how to write to them. I can see that they are BYTE values, but how to convert a

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 7:02 PM, Kasper Føns kfo...@gmail.com wrote: Windows Explorer also likes the XP values (eg. EXIF_TAG_XPCOMMENT, EXIF_TAG_XPAUTHOR), maybe try writing those as well? Hmm. You seem to be right that explorer likes the XP values. However, I can't figure out how to write to

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 6:39 PM, Kasper Føns kfo...@gmail.com wrote: I wouldn't count on Windows Explorer to give you the right values. Rather check it against exiftool (www.sno.phy.queensu.ca/~phil/exiftool/): exiftool -a -g1 -u image.tiff Windows Explorer also likes the XP values (eg.

Re: [Collections] Circular Buffer

2012-03-08 Thread sebb
On 8 March 2012 06:38, manoj mokashi manojmoka...@gmail.com wrote: @James : Does the header include a record size ? Yes. I suppose you are wondering why i need to detect the headers if the record size is known. Actually its a corrupted archive in which the header size is correct, but the body