Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: AD ADSI ACtive Directory Upload Photo Jpg Jpeg OpenDSObject Put SetInfo
MyUser = "Roger Rabit" jpgName = DirScript():"TestIn.JPG" nBytes = FileSize(jpgName) hImageSource = BinaryAlloc(nBytes) BinaryRead( hImageSource, jpgName ) BinaryOleType(hImageSource, 303, 0, 0, 0) objLdap = GetObject("LDAP:") objUser = objLdap.OpenDSObject("LDAP://shamrock/CN=Roger Rabbit,CN=Users,DC=jclass,DC=org", "shamrock\GuessWho","*TopSecret*", 1) ObjUser.Put("jpegPhoto", ARRAY:hImageSource) ObjUser.SetInfo() objUser = 0
Article ID: W18049
Filename: ADSI COM Example - Upload a Photo.txt
File Created: 2013:02:11:09:18:28
Last Updated: 2013:02:11:09:18:28