It is returned as the stream (ISStream), which includes the content of the provider's photo.
object.GetPhotoId()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProvider interface |
object
Display the list of providers with photos, if any.
Dim aFilter
Dim aProviders
Dim aProvider
Dim aHTML
Dim aProviderPhotoId
Dim aMessage
Set aFilter = Profile.CreateProvidersFilter
aFilter.Category = 2 'pcProvider
set aProviders = Profile.LoadProvidersByFilter(aFilter)
aHTML = "<HTML><HEAD><TITLE>Profile Providers</TITLE></HEAD><BODY>" &_
"<H1>The number of the providers is " & aProviders.Count & "</H1>"
for each aProvider in aProviders
aHTML = aHTML & "<li>" & aProvider.FullName & " (" & aProvider.Code & ")</li>"
set aProviderPhotoId = aProvider.GetPhotoId
if aProviderPhotoId is nothing then
aHTML = aHTML & "<p><i>No photo</i></p>"
else
aHTML = aHTML & "<p><img src='data:image/jpeg;base64, " & aProviderPhotoId.AsBase64 & "'/></p>"
end if
next
aHTML = aHTML & "</BODY></HTML>"
Profile.ShowHTML aHTML, "Profile Providers"
In Profile Client v8 on User Interface Photo ID can be found in
.ISStream to
object
in v7.11.0