get file properties of an image

mmniet

New Member
Hi,

How can I get some file-properties.

For example I need to know the filesize and the pixels width and height of an image.

I searched the help, google and this forum, but didn't find a sollution, hopefully there's one.
 
You can use the FILE-INFO system handle and it's attributes to get information about files. But I don't think you will be able to get more than the standard file attributes that way.

ASSIGN FILE-INFO:FILE-NAME = myFile.
MESSAGE FILE-INFO:PATHNAME SKIP FILE-INFO:FILE-TYPE VIEW-AS ALERT-BOX.

HTH, RealHeavyDude.
 
I suspect the only way will be to find an ocx that you can plug into. You certainly can't get the info you want through Progress directly.
 
If your OS is lnux we have "file" command:

$ file aaa.png
aaa.png: PNG image data, 1018 x 957, 8-bit/color RGBA, non-interlaced
 
Ah yes indeed. My fault assuming they're on M$. Their fault for not specifying their OS. :-)
 
Back
Top