0

How can i read the content type header information of an image file located in isolated in windows phone 8. I need to read the image extension information from its mime. Could anyone please guide me to a solution.


Using a mechanism something like posted in the thread helps.

C# How can I test a file is a jpeg?

Community
  • 1
  • 1
ashok
  • 187
  • 2
  • 11
  • Do you mean the exif information? – Chubosaurus Software Sep 05 '14 at 06:38
  • I want to read the extension of the file from its header. If you write click on an image file and open it in text editor, it shows ******‰PNG***** or *******JFIF*****. Here * represents some garbage values which text editor does not understand. How can i do this in C#. I came across using system.drawing namespace to achieve it but thats not available in windows phone – ashok Sep 05 '14 at 10:50
  • Found the solution. The solution is to read the bytes and map them to there valid extensions. A solution to find jpeg is posted here. http://stackoverflow.com/questions/772388/c-sharp-how-can-i-test-a-file-is-a-jpeg – ashok Sep 08 '14 at 11:02

0 Answers0