You have to store your image in the server and then try
FileInfo f = new FileInfo(@"c:\image.jpeg"); //Your image path
DateTime create = f.CreationTime;
Note: Don't forget to include System.IO namespace
You can save your image to the server and get the created date because create date will not be updated when your copy paste your file. Its only the modified date gets updated
Please don't forget to mark this post as answered incase if this worked for you
Member
8 Points
23 Posts
How to get photo image data taken?
Aug 25, 2012 10:53 PM|drtiger|LINK
How can I get Image property like photo image date taken before storing to the database?
I found a way to do in C# Windows Form, but not in asp.net
Participant
1124 Points
408 Posts
Re: How to get photo image data taken?
Aug 25, 2012 11:05 PM|syed.iddi|LINK
You have to store your image in the server and then try
FileInfo f = new FileInfo(@"c:\image.jpeg"); //Your image path
DateTime create = f.CreationTime;
Note: Don't forget to include System.IO namespace
You can save your image to the server and get the created date because create date will not be updated when your copy paste your file. Its only the modified date gets updated