SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Retrieve ContentType From the ZipEntry after extracting the file.

Last post 10-06-2008 7:51 PM by JohnReilly. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-30-2008 10:04 AM

    • Hardik
    • Not Ranked
    • Joined on 09-30-2008
    • Posts 1

    Retrieve ContentType From the ZipEntry after extracting the file.

    Hi,

     After extracting file from the Zip, i want to know how to get the ContentType of the file we just extracted. Basically, i have a .zip file which included .jpg / GIF etc image files along with .pdf, .csv, .xls etc. Now, for images, i have to create thumbnails, and while i am extracting the zip file, i want to put a check based on the ContentType of the file, whether the extracted file is an image or not. 

     

    Please help.

     

    Thank You,

    Hardik

    Filed under: ,
  • 10-06-2008 7:51 PM In reply to

    Re: Retrieve ContentType From the ZipEntry after extracting the file.

    Hi,

    Content type is not available in the library which only does compression.  You need to analyse the file to get the content type. You could use the extension for a quick approximation of that perhaps.

    hth, -jr-

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.