473,397 Members | 2,116 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,397 software developers and data experts.

File properties

tfs
Is there a way in asp.net to get the file properties such as: author,
subject,title and category. Apparently, fileinfo doesn't have that.

I need to get the these as we are going to use them for our document
display system.

Thanks,

Tom

Nov 18 '05 #1
4 1743
Jos
tfs wrote:
Is there a way in asp.net to get the file properties such as: author,
subject,title and category. Apparently, fileinfo doesn't have that.

I need to get the these as we are going to use them for our document
display system.


For Word and PDF documents, these properties are part
of the file data itself. You should look up the documentation
on each format to extract the info.

On NTFS file systems, this data can sometimes be found in
a so-called "named stream" inside the file (I know it exists with RTF
and graphic files).

To find out more about this last type of data, there's a
free utility, available at:
http://www.rekenwonder.com/streamexplorer.htm

I hope this helps you...

--

Jos
Nov 18 '05 #2
"Jos" <jo***************@fastmail.fm> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
tfs wrote:
Is there a way in asp.net to get the file properties such as: author,
subject,title and category. Apparently, fileinfo doesn't have that.

I need to get the these as we are going to use them for our document
display system.
For Word and PDF documents, these properties are part
of the file data itself. You should look up the documentation
on each format to extract the info.

On NTFS file systems, this data can sometimes be found in
a so-called "named stream" inside the file (I know it exists with RTF
and graphic files).

To find out more about this last type of data, there's a
free utility, available at:
http://www.rekenwonder.com/streamexplorer.htm


I tried that, but it doesn't seem to show the alternative data stream for a
..doc file - which is where the title, subject and category are. It does
show the security and object identifiers types (both unnamed). It does show
the alternative data streams for rtf files (summary and document), however.

Thanks,

Tom I hope this helps you...

--

Jos

Nov 18 '05 #3
Jos
Thomas Scheiderich wrote:
"Jos" <jo***************@fastmail.fm> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
tfs wrote:
Is there a way in asp.net to get the file properties such as:
author, subject,title and category. Apparently, fileinfo doesn't
have that.

I need to get the these as we are going to use them for our document
display system.


For Word and PDF documents, these properties are part
of the file data itself. You should look up the documentation
on each format to extract the info.

On NTFS file systems, this data can sometimes be found in
a so-called "named stream" inside the file (I know it exists with RTF
and graphic files).

To find out more about this last type of data, there's a
free utility, available at:
http://www.rekenwonder.com/streamexplorer.htm


I tried that, but it doesn't seem to show the alternative data stream
for a .doc file - which is where the title, subject and category are.


No, as I said, the info for doc files is inside the file itself.

More information about the doc file format (and others) can be found here:
http://www.wotsit.org/search.asp?s=text

--

Jos
Nov 18 '05 #4
tfs
You're right.

I must have missed it.

Thanks,

Tom

Nov 18 '05 #5

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

Similar topics

8
by: Paul | last post by:
Hello, I've been reading up on security in Java Applets and whilst I understand the concept, I can't successfully get my applet to read a file on my local machine. I discovered from...
3
by: Lauren Quantrell | last post by:
I'd like to use my Access 2K application to write some text in the file properties of a Windows file. The properties I'm talking about are the properties you see whn you right click on a Windows...
2
by: ironwall22z | last post by:
My goal is to write a program in C# that will take the Artist and Title of an MP3 file and change the name of the file to a concatenated combination of the two. In order to do this, I am trying to...
2
by: ywchan | last post by:
I want to access and modify the following file properties 1. when you open an application e.g. word / acrobat reader, those information in file -> properties. 2. when you right click the file,...
5
by: IcingDeath via DotNetMonster.com | last post by:
I am building this SQL Server database app in which i can store files. In order to display files I want to have the app show the associated icon for the extension of the file that is in the...
5
by: mike | last post by:
Hi, I have been playing with VB.NET/C# for getting some general properties of a fileinfo object. However, FileInfo object does not seem to expose some of the basic properties like TYPE that used...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
2
by: =?Utf-8?B?QXJ0?= | last post by:
I need to go through a folder and all of its subfolders and collect the Title, Comments, Keywords and a few other items. These are items that you see when you select a file in the Windows explorer...
8
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
0
by: ndedhia1 | last post by:
I am having trouble loading a property file and keep getting this error when running my shell script that loads and runs my jar files, etc: no property file loaded, using defaults......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.