Passing data in JPG
Date: 11/16/07
(C Sharp) Keywords: asp, web
I have the need to pass data in a JPG image.
That is, I'm generating the JPG image dynamically using GDI+ in .NET from an ASP.NET call. What I need to do is place some data into the JPG, say a GUID, and be able to read it back when I load the JPG from the web site where it is displayed.
I surely can't do this with the actual image data, as my understanding is that JPG is run-encoded and getting data in and out would be a bear.
Are there any metadata headers in JPG that I have access to? Anyone know of or have any C# code to read and write these?
Source: http://community.livejournal.com/csharp/88978.html