Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2006, 11:34 PM
Authorized User
 
Join Date: Feb 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default GDI+: Reading Exif Data From Jpegs

Hi, I'm working on a program to extract Exif data from images.
To extract the data from bits into human readable form, I use various helper functions that help me "decode" the bits. For example, to get LONG datatype, I use the following:

Code:
  
  Private Function GetLong(ByVal bits As Byte()) As Long
    Try
      Return CType(BitConverter.ToInt32(bits, 0), Long)
    Catch ex As Exception
      Return 0L
    End Try
  End Function
Things are fine for the other datatypes EXCEPT the UNDEFINED datatype recorded in the Exif data.

Anyone can teach me how to handle the UNDEFINED datatype?
I'm using VB.NET 2003.

Thanks!

Scripts82
__________________
Scripts82





Similar Threads
Thread Thread Starter Forum Replies Last Post
opening jpegs and mpegs in vb 2005 adamcornelius Visual Basic 2005 Basics 0 March 14th, 2007 09:34 AM
reading data darkhalf XSLT 1 September 7th, 2006 02:51 PM
EXIF loupatrickson ASP.NET 1.0 and 1.1 Basics 0 March 29th, 2006 06:19 PM
Reading Data From SQL Ridouan VB.NET 2002/2003 Basics 2 January 31st, 2005 05:43 PM
Reading data from database... Thomas82 Classic ASP Databases 3 February 25th, 2004 03:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.