Get File Content Type

  •  02-12-2009, 10:47 AM

    Get File Content Type

    Hello,
     
    I am loading these files to a sql server database and I need to know the file content type for when I go to stream them back out.
     
    Example (application/pdf)
     
    With the asp:FileUpload control you would do something like
    Dim
    myVar As String = FileUpload1.PostedFile.ContentType
     
    Thanks,
    b-man
View Complete Thread