How do I store photos in Active Directory using VBscript

E

Erlend

I want to store a photo in the JpegPhoto property of user in Windows
Server 2003 using VBscript.

My problem is that JpegPhoto only stores binary values..

I have seen an example of a jpeg to binary conversion in Delphi, where
the jpeg file is read into memory, stored in a byte-array and then
passed as argument to a createBlob procedure. Are there any equivalent
functions in VBscript or VB? I would appreciate examples on how to
write a piece of code that does the conversion and puts it into the
JpegPhoto property :)

Regards
Erlend
 
Top