Only for images
You can obtain the info using the PalmPhoto API with the next code
You must know the name of the image "myimage.jpg" and the info will be returned
in infoAbout.
Err error;
PalmPhotoFileLocation photoFilep;
PalmPhotoHandle photo;
PalmPhotoImageInfo infoAbout;
UInt16 jpegLibRef = 0;
photoFilep.file.StreamFile.creator = 'Foto';
photoFilep.fileLocationType = palmPhotoStreamLocation;
StrCopy(photoFilep.file.StreamFile.name, "myimage.jpg");
error = SysLibFind(PalmPhotoLibName, &jpegLibRef);
if (error != errNone)
error = SysLibLoad(PalmPhotoLibTypeID, PalmPhotoLibCreatorID, &jpegLibRef);
if (error == errNone){
PalmPhotoLibOpen(jpegLibRef);
photo = PalmPhotoOpenImageV2(jpegLibRef, &photoFilep);
PalmPhotoGetImageInfo(jpegLibRef, photo, infoAbout)
PalmPhotoCloseImage(jpegLibRef, photo);
PalmPhotoLibClose(jpegLibRef);
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/