473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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
Aug 24 '07 #1
3 1398
In article <3A**********************************@microsoft.co m>,
aj**@discussions.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 (pa*****@mvps.org)
http://weblogs.asp.net/psteele
Aug 26 '07 #2

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 <3A**********************************@microsoft.co m>,
aj**@discussions.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 (pa*****@mvps.org)
http://weblogs.asp.net/psteele
Aug 27 '07 #3
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 <CE**********************************@microsoft.co m>,
aj**@discussions.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 <3A**********************************@microsoft.co m>,
aj**@discussions.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 (pa*****@mvps.org)
http://weblogs.asp.net/psteele
--
Patrick Steele (pa*****@mvps.org)
http://weblogs.asp.net/psteele
Aug 28 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: tlviewer | last post by:
hello, In honor of the chm exploit that I got hit by last week, I trying to code some ActivePython to list the directory inside a CHM. CHM is supposed to be structured storage (ITSF). If a...
3
by: Edmond Neo | last post by:
I use structured storage to store large amounts of data in various streams. I realize that I can call structured storage through a wrapper in .NET, but I'm concerned that there is a performance...
1
by: John Rauhe | last post by:
Hello, Does anybody know how to detect if an mass-storage device has been added to the system ? I am making a program that will (should) detect when a CompactFlash memory card has been inserted...
4
by: David Groves | last post by:
Are there any plans to incorporate a native C# facility to deal with the OLE Structured Storage concept? It's clumsy at best to have to construct a C++ interface to the .doc files (or any such...
6
by: sanjana | last post by:
hi i wanna detect if a anything is connected to the usb port I am using system.management class for tht purpose this is my code class usbdetect { public static void Main() { usbdetect we =...
10
by: Dave | last post by:
Has anyone out there managed to create a structured storage file using pure VB.Net? Specifically; with the API function StgCreateStorageEx? If so, could you post a working example here please. One...
1
by: Gerald Hernandez | last post by:
The .NET Framework is huge, and either this isn't in there, or I'm just missing it... Are there any built-in methods to work with OLE2 Structured Storage files? Or am I stuck with using COM...
3
by: Dwight | last post by:
I need to be able to read and create Structured Storage Files. I have not been able to find anything about this except for C++, which I do not know. currently i'm using a DOC viewer (eDoc) just to...
2
by: ERE | last post by:
I'd like to encapsulate several files -- mostly graphics files -- as a single file. Does .NET provide a convenient way to do this? COM provided structured storage -- but I definitely don't want...
3
by: Gregory Gadow | last post by:
Is there a way to create structured files in .NET 2.0? Essentially, I want to take a hierarchic web site and convert it to a single, navigatable file similar to the compiled help, but using my own...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.