This is my code

       newentry = cr.Retrieve(Of Google.Contacts.Contact)(feedUri)

        'newentry.xyz can be read and is also the right user, where I
will add the photo.

        Dim img As Image = New Bitmap(picfile)
        Dim photoStream As New System.IO.MemoryStream

        'img is OK,I have test this by write img to new file again and
it can be open as jpg

        img.Save(photoStream, System.Drawing.Imaging.ImageFormat.Jpeg)
        photoStream.Seek(0, SeekOrigin.Begin)

        cr.SetPhoto(newentry, photoStream)  ' here comes "Error Der
Prozeduraufruf oder das Argument ist ungültig"

        'So what's wrong, can anybody help me ?

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to