in reply to Saving Photos stored in LDAP
This is just a guess but I bet that your jpeg got uuencode before it got stored in LDAP, so you might want to look at http://search.cpan.org/~andk/Convert-UU-0.5201/lib/Convert/UU.pm to uudecode the data you get from
my $photo = $entries[0]->get_value('photo');
In Section
Seekers of Perl Wisdom