473,668 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help reading image extended info such as Author Width Comments, Etc

tom
I'm trying to read in image data using the filesystemobjec t. I am able
to read the comments field for all file types it seems, except the ones
I want, .gif .jpg and .bmp.

Is it possible to do this?! If so what might I need to do?

Thanks!

here is the script im using to loop through each possible sub field:

Dim arrHeaders(34)
Set objShell = CreateObject("S hell.Applicatio n")
Set objFolder = objShell.Namesp ace("E:\images" )
For i = 0 to 33
arrHeaders(i) = objFolder.GetDe tailsOf(objFold er.Items, i)
Next
For Each strFileName in objFolder.Items
For i = 0 to 33
Response.Write( i & vbtab & arrHeaders(i) & ": " &
objFolder.GetDe tailsOf(strFile Name, i) & "<br>")
Next
Next

Aug 9 '06 #1
3 3336

to*@tmweber.com wrote:
I'm trying to read in image data using the filesystemobjec t. I am able
to read the comments field for all file types it seems, except the ones
I want, .gif .jpg and .bmp.

Is it possible to do this?! If so what might I need to do?

Thanks!

here is the script im using to loop through each possible sub field:

Dim arrHeaders(34)
Set objShell = CreateObject("S hell.Applicatio n")
Set objFolder = objShell.Namesp ace("E:\images" )
For i = 0 to 33
arrHeaders(i) = objFolder.GetDe tailsOf(objFold er.Items, i)
Next
For Each strFileName in objFolder.Items
For i = 0 to 33
Response.Write( i & vbtab & arrHeaders(i) & ": " &
objFolder.GetDe tailsOf(strFile Name, i) & "<br>")
Next
Next
Your script works perfectly for image files as-is when I tried it. Eg,
it returned this for a gif file:

0 Name: bgcolor
1 Size: 1 KB
2 Type: GIF File
3 Date Modified: 17/10/2005 11:51
4 Date Created: 10/08/2006 08:27
5 Date Accessed: 10/08/2006 08:27
6 Attributes: A
7 Status: Online
8 Owner: Administrators
9 Author:
10 Title:
11 Subject:
12 Category:
13 Pages:
14 Comments:
15 Copyright:
16 Artist:
17 Album Title:
18 Year:
19 Track Number:
20 Genre:
21 Duration:
22 Bit Rate:
23 Protected:
24 Camera Model:
25 Date Picture Taken:
26 Dimensions: 25 x 24
27 : 25 pixels
28 : 24 pixels
29 Episode Name:
30 Program Description:
31 :
32 Audio sample size:
33 Audio sample rate:

--
Mike Brind

Aug 10 '06 #2
tom
Mike,

Try right clicking a file, going to properties.. summary tab.. and
entering in something for author, comments, etc. See if that works.

I get that default information as well, just not the
comments/author/etc fields. If yours works, what might be wrong on my
side that would prevent that from happening?

Thanks!

Tom

Mike Brind wrote:
to*@tmweber.com wrote:
I'm trying to read in image data using the filesystemobjec t. I am able
to read the comments field for all file types it seems, except the ones
I want, .gif .jpg and .bmp.

Is it possible to do this?! If so what might I need to do?

Thanks!

here is the script im using to loop through each possible sub field:

Dim arrHeaders(34)
Set objShell = CreateObject("S hell.Applicatio n")
Set objFolder = objShell.Namesp ace("E:\images" )
For i = 0 to 33
arrHeaders(i) = objFolder.GetDe tailsOf(objFold er.Items, i)
Next
For Each strFileName in objFolder.Items
For i = 0 to 33
Response.Write( i & vbtab & arrHeaders(i) & ": " &
objFolder.GetDe tailsOf(strFile Name, i) & "<br>")
Next
Next

Your script works perfectly for image files as-is when I tried it. Eg,
it returned this for a gif file:

0 Name: bgcolor
1 Size: 1 KB
2 Type: GIF File
3 Date Modified: 17/10/2005 11:51
4 Date Created: 10/08/2006 08:27
5 Date Accessed: 10/08/2006 08:27
6 Attributes: A
7 Status: Online
8 Owner: Administrators
9 Author:
10 Title:
11 Subject:
12 Category:
13 Pages:
14 Comments:
15 Copyright:
16 Artist:
17 Album Title:
18 Year:
19 Track Number:
20 Genre:
21 Duration:
22 Bit Rate:
23 Protected:
24 Camera Model:
25 Date Picture Taken:
26 Dimensions: 25 x 24
27 : 25 pixels
28 : 24 pixels
29 Episode Name:
30 Program Description:
31 :
32 Audio sample size:
33 Audio sample rate:

--
Mike Brind
Aug 10 '06 #3
OK.

GIF and BMP formats don't appear to allow editing of the properties you
listed (at least not on my setup - XP Pro, SP2). The edit fields are
greyed out. I can edit the properties for a JPG file, and the code
picks up and displays them all:

9 Author: Test Author
10 Title: Test title
11 Subject: Test Subject
12 Category:
13 Pages: 1
14 Comments: Test comment

Have you access to another machine/OS you can test this on?

--
Mike Brind
to*@tmweber.com wrote:
Mike,

Try right clicking a file, going to properties.. summary tab.. and
entering in something for author, comments, etc. See if that works.

I get that default information as well, just not the
comments/author/etc fields. If yours works, what might be wrong on my
side that would prevent that from happening?

Thanks!

Tom

Mike Brind wrote:
to*@tmweber.com wrote:
I'm trying to read in image data using the filesystemobjec t. I am able
to read the comments field for all file types it seems, except the ones
I want, .gif .jpg and .bmp.
>
Is it possible to do this?! If so what might I need to do?
>
Thanks!
>
here is the script im using to loop through each possible sub field:
>
Dim arrHeaders(34)
Set objShell = CreateObject("S hell.Applicatio n")
Set objFolder = objShell.Namesp ace("E:\images" )
For i = 0 to 33
arrHeaders(i) = objFolder.GetDe tailsOf(objFold er.Items, i)
Next
For Each strFileName in objFolder.Items
For i = 0 to 33
Response.Write( i & vbtab & arrHeaders(i) & ": " &
objFolder.GetDe tailsOf(strFile Name, i) & "<br>")
Next
Next
Your script works perfectly for image files as-is when I tried it. Eg,
it returned this for a gif file:

0 Name: bgcolor
1 Size: 1 KB
2 Type: GIF File
3 Date Modified: 17/10/2005 11:51
4 Date Created: 10/08/2006 08:27
5 Date Accessed: 10/08/2006 08:27
6 Attributes: A
7 Status: Online
8 Owner: Administrators
9 Author:
10 Title:
11 Subject:
12 Category:
13 Pages:
14 Comments:
15 Copyright:
16 Artist:
17 Album Title:
18 Year:
19 Track Number:
20 Genre:
21 Duration:
22 Bit Rate:
23 Protected:
24 Camera Model:
25 Date Picture Taken:
26 Dimensions: 25 x 24
27 : 25 pixels
28 : 24 pixels
29 Episode Name:
30 Program Description:
31 :
32 Audio sample size:
33 Audio sample rate:

--
Mike Brind
Aug 10 '06 #4

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

Similar topics

14
1830
by: Brett Sinclair | last post by:
Hello everybody I'm still on the learning curve here...and from what I read, I created inherited datagrid class so I could have icons, combobox...etc in the columns of my datagrid. The grid will be used to populate information coming from a Webservice. (No datasets - No datareaders). So, I do not know see how to use the "datasource".
4
1608
by: danu | last post by:
I'm trying to read data from a file (line by line) and trying to assign the values to the structure members. I'm kind of lost in this case since the books I'm using for reference doesn't give any examples about this case. typedef struct{ char magicNum; int width; int height; int maxGrey;
4
2745
by: jereme.goblue | last post by:
The web page at http://www.rossowinspections.com/ has an issue with the left menu. The left menu has 7 links. One of the links doesn't work. Using Firefox 1.5 the Fees link isn't a clickable link, if viewed as a full screen. If you shrink the window down the Fees link then becomes a link. The link works in IE and Mozilla. I've validated the CSS and XHTML, the CSS had no errors, the XHTML has no errors other than the paramaters for the...
5
4729
by: TheGanjaMan | last post by:
Hi everyone, I'm trying to write up a simple image stamper application that stamps the Exif date information from the jpegs that I've taken from my digital camera and saves the new file with the date stamped on the lower right part of the picture. (I'm not an advanced programmer so my code may not be 100% efficient - sorry, I'm still learning) Everything works fine until the saving part. I've been able to read the file into a...
23
2784
by: casper christensen | last post by:
Hi I run a directory, where programs are listed based on the number of clicks they have recieved. The program with most clicks are placed on top and so on. Now I would like people to be apple to place a link on there site so people can vote for their program, "ad a click". eg someone clicks the link on some page and it counts +1 click on my page. if some one clicks the link below it will count a click on my page.
0
5558
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
7
3923
by: webgyrl | last post by:
Hi, I am helping a musician friend of mine with his profile and I found a cool layout on Nas' MySpace page. I changed some things and re-did the graphics and I basically popped my Image URLS where the ones were in Nas' profile code. Something strange is happening tho. When I try to preview the layout, the entire profile is all covered up. My images show, but all the other elements have disappeared. I am not sure where in the CSS I...
0
1902
by: magicofureyes | last post by:
Hello Guys im a just a new user and i dnt knw much abt Xml i want to upload a new template in Blogger so got some free coding but when i save this code in Blogger template it say '''' Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The element type "Variable" must be terminated by the matching end-tag "". so please help me out and check this coding if...
12
2454
by: =?Utf-8?B?ZGdvdw==?= | last post by:
I designed a "contact_us" page in visual web developer 2005 express along with EW2 after viewing tutorials on asp.net's help page. Features work like they should, but I cannot figure out how to send contact info to email or data base when the "send" button is pressed. I've watched the tutorials over & over again. I just can't get it. Link: http://www.syfloristonline.zipa.com/contact_us.aspx. Need help
0
8381
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,...
1
8586
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
8658
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...
0
5681
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
4205
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2792
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
2
2026
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.