Detect Structured Storage Format

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?YWppdA==?=

    Detect Structured Storage Format

    I am writing an application in C# I have file converted to stream.

    I need to find out the type of office file (prior to office 2007)

    I need to do this using streams I know hoe to do this using byte[].

    Thanks
  • Patrick Steele

    #2
    Re: Detect Structured Storage Format

    In article <3A114B34-ADF6-4E59-9DD9-932830EE4E57@mi crosoft.com>,
    ajit@discussion s.microsoft.com says...
    I am writing an application in C# I have file converted to stream.
    >
    I need to find out the type of office file (prior to office 2007)
    >
    I need to do this using streams I know hoe to do this using byte[].
    Would a MemoryStream class work?

    --
    Patrick Steele (patrick@mvps.o rg)

    Comment

    • =?Utf-8?B?YWppdA==?=

      #3
      Re: Detect Structured Storage Format


      Memeory Stream is a byte array internally right if I have a large file it
      will still be an isuue.

      Thanks

      "Patrick Steele" wrote:
      In article <3A114B34-ADF6-4E59-9DD9-932830EE4E57@mi crosoft.com>,
      ajit@discussion s.microsoft.com says...
      I am writing an application in C# I have file converted to stream.

      I need to find out the type of office file (prior to office 2007)

      I need to do this using streams I know hoe to do this using byte[].
      >
      Would a MemoryStream class work?
      >
      --
      Patrick Steele (patrick@mvps.o rg)

      >

      Comment

      • Patrick Steele

        #4
        Re: Detect Structured Storage Format

        Ok -- lets back up. What exactly do you need to do?

        It sounded like you've got a technique for detecting a file type by
        looking at a byte[], but now that you've got a Stream instead of a File,
        you're stuck?

        In article <CE7ABCBC-7CF0-4A1F-BDBE-09B2463B80C4@mi crosoft.com>,
        ajit@discussion s.microsoft.com says...
        >
        Memeory Stream is a byte array internally right if I have a large file it
        will still be an isuue.
        >
        Thanks
        >
        "Patrick Steele" wrote:
        >
        In article <3A114B34-ADF6-4E59-9DD9-932830EE4E57@mi crosoft.com>,
        ajit@discussion s.microsoft.com says...
        I am writing an application in C# I have file converted to stream.
        >
        I need to find out the type of office file (prior to office 2007)
        >
        I need to do this using streams I know hoe to do this using byte[].
        Would a MemoryStream class work?

        --
        Patrick Steele (patrick@mvps.o rg)
        >
        --
        Patrick Steele (patrick@mvps.o rg)

        Comment

        Working...