473,761 Members | 5,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ho to read extended file attributes in c#

How can I read extended attributes from a file ?
For example I have tiff file and with it there are connected some additional
information Width, Height, Pages etc.

I couldn't find any usefull information how to read it. Is there easy way
without using COM object like in the problems with office file ?

Greetings
Mark M.
Aug 7 '08 #1
1 3233
On Aug 7, 7:04*am, Mark <M...@discussio ns.microsoft.co mwrote:
How can I read extended attributes from a file ?
For example I have tiff file and with it there are connected some additional
information Width, Height, Pages etc.

I couldn't find any usefull information how to read it. Is there easy way
without using COM object like in the problems with office file ?

Greetings
Mark M.
I think that it depends of the file type, you have to know the file
type first, then where and which are the "properties " not of the file
but of the data contained in the file
Aug 7 '08 #2

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

Similar topics

1
394
by: Dianna K | last post by:
I am opening, reading and extracting an Excel spreadsheet in .Net (VB). It seems to work fine, however, when I am finished and I open up Excel and try to open up the file a message pops up "File Now Available", "select Read-Write or Cancel". Its almost like my code is changing the documents attributes. Am I doing something wrong in my code Any help would be great. Thanks Diann PS: I'm not quite sure why, but it seems that I have to use...
0
1489
by: Chris Stocker | last post by:
The problem that we see is that we can not create a reparse point on the file system. The operating system returns error 282 which means that the FS doesn't support extended attributes, which it should I believe if it is NTFS. There may be a way to turn off extended attributes on NTFS, but I am not aware of how. The call that we make is FSCTL_SET_REPARSE_POINT from DeviceIoControl.
4
14947
by: Markus Brenner | last post by:
Hi there! Hope anybody can help. I want to at least read (maybe write) the extended file properties of office documents like winword, excel, .... I've tried two ways till now, one by opening the responding application (this method was to slow for my needs). The other way was using the dsofile.dll from microsoft. With that, first, it seemed to work.
2
1056
by: Raterus | last post by:
Hi, This is easy, I'm using some "extended attributes" to my classes/properties more and more these days, you know, when you have type that stuff before the definition of your class. <XmlRoot(ElementName:="something")> _ Public Class MyClass End Class or sometimes I've had to do this...
6
6003
by: Samuel M. Smith | last post by:
I have been playing around with a subclass of dict wrt a recipe for setting dict items using attribute syntax. The dict class has some read only attributes that generate an exception if I try to assign a value to them. I wanted to trap for this exception in a subclass using super but it doesn't happen. I have read Guido's tutorial on new style classes and Shalabh's tuturial on new style attributes and methods, and thought I understood...
0
993
by: Ronald S. Cook | last post by:
When you right-click on a file, there is (in addition to a general tab that has basic attributes) a "Details" tab that has extended properties. How can I read these values from VB.NET? I know with System.IO I can read those basic properies from the general tab, but how do I get to the other? Thanks, Ron
6
7270
by: | last post by:
Hi, I'm steel trying to read and update my XML file with Visual Basic Express but i am unable to find the right way to read my xml file and update it if neccessary... Here is my problem : evry day, i store the number of children in my classroom in my XML file. For exemple, on monday, my app ask me something like this : msgbox ("Are the 28 children here today ?",vbyesno)
0
927
by: Miles | last post by:
Mitrokhin wrote: Mac OS X 10.5 comes with a Python "xattr" package pre-installed, which the xattr command-line utility is built on top of. Furthermore, the resource fork can be accessed as an extended attribute (xattr.XATTR_RESOURCEFORK_NAME). This might also be true of Mac OS X 10.4, but I don't recall for sure and I don't have access to it to check. -Miles
5
4679
by: siddhanta | last post by:
hi, i read the ascii value from a file and wrote the decimal one in other file. But values above "127" i.e. extended ascii are printed as" 65533." here ais wat i did: private void button1_Click(object sender, EventArgs e) { int b = new int; StreamReader sw = new StreamReader("c: \\28D.09N"); for (int i = 0; i < 5000; i++) {
0
9377
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9925
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7358
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.