zalk Absent Member.
Absent Member.
1673 views

Exception on getting Thumbnail Image from Address Book Entry

Hi everyone!

I have my own personal AddressBook with manually created users (not copied from somewhere). GroupWise client says that I'm an Owner of this AddressBook. All users in this AddressBook have Thumbnail Images.

I get AddressBookEntry from this AddressBook via ObjectAPI. Now I can get DisplayName, ObjType, EmailAddress, all field values.
But when I try to call the methods to work with Thumbnail Images, I get an exception "Update access is denied to current user".

Methods that cause such exception:

  • entryVar.HasThumbnailImage;
  • entryVar.SaveThumbnailImageToJPGFile('d:\test.jpg');
  • entryVar.SetImageAsJPGThumbnail('d:\me.jpg');
  • entryVar.RemoveThumbnailImage


I get same issue on GW12 and GW14 (several builds).

Code sample:
fSession := CreateOleObject('NovellGroupWareSession');
fAccount := fSession.Login;
addressBooksVar := fAccount.AddressBooks;
addressBookVar := addressBooksVar.Item('MyBook');

entriesVar := addressBookVar.AddressBookEntries;
countEntries := entriesVar.Count;
for i := 1 to countEntries do
begin
entryVar := entriesVar.Item(i);
currObjType := entryVar.ObjType;
displayName := entryVar.DisplayName;
email := entryVar.EmailAddress;

if entry.HasThumbnailImage then //here I get an Exception 'EOleException: Update access is denied to current user'
...........


Collection AddressBook.AddressBookRights is empty. I even tried to put myself into this collection with egwFullAccess access.
myAddress := fAccount.Owner;
rightsCollection := addressBookVar.AddressBookRights;
rightsCollection.Add(myAddress, 1);

But nothing changes, I still get the same exception...

Did you get same issue on getting images from AddressBookEntry? Do you have some solution?

Thanks in advance!
Labels (1)
0 Likes
4 Replies
moegle Absent Member.
Absent Member.

Re: Exception on getting Thumbnail Image from Address Book E

Hi zalk,

I have the same problem. Did you solve this exception error?

Thank you for your reply !
0 Likes
zalk Absent Member.
Absent Member.

Re: Exception on getting Thumbnail Image from Address Book E

Hi moegle.

Unfortunatelly no...
0 Likes
zalk Absent Member.
Absent Member.

Re: Exception on getting Thumbnail Image from Address Book E

The only way that I've found is to use MultiLogin instead of Login. And set the flag MultiLoginAddressBookSupport := True;

fGWSession.MultiLoginAddressBookSupport := True;
fGWAccount := fGWSession.MultiLogin(fSettings.GWLogin, Format('/ipa-%s /ipp-%s', [fSettings.GWDomain, fSettings.GWPort]), fSettings.GWPassword);
0 Likes
zalk Absent Member.
Absent Member.

Re: Exception on getting Thumbnail Image from Address Book E

Good news everyone!
According to our tests, this feature works on GW Client 2018!!!
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.