View Single Post
  #1 (permalink)  
Old 01-06-2009, 5:48 PM
spanner5351 spanner5351 is offline
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Jan 2009
Posts: 3
Reputation: 0
spanner5351 is on a distinguished programming path ahead
Default Help!! GPS in EXIF using VB.NET!!

Hi guys,

only just signed up here because i have been pulling my hair out trying to find answers all of the internet but to no avail!

As part of a project I am writing a program to be able to add GPS information to jpg pictures. For example to add the latitude and longitude to a photo.

So far i have managed to be able to change the latitude and longitude of jpg photos which already have these GPS field in the EXIF.

However...if i try to add the latitude and longitude information to photos that have never been tagged before i get the following error:

"Property cannot be found." on the following lines of code:

Dim latProp As PropertyItem = photo.GetPropertyItem(2)
Dim longProp As PropertyItem = photo.GetPropertyItem(4)


Ok so this to me means, that this photo does not have the above PropertyItems within it EXIF...

my question is....how do i add these PropertyItems to the file!!!???

any ideas!!?

oh and if i havent explained myself clearly, please let me know so i can clarify as i really do need to answers to this.

Thanks!!
-----
Information - Using Visual Studio 2005 and writing in vb.net
Reply With Quote