Android Question Copy Contact Photo

Dogbonesix

Active Member
Licensed User
Longtime User
Is there a way to copy a contact photo to a common folder, say Downloads?
My wife has a new phone and the back up did not restore all the photos. The photo old photo can be viewed and if it could be copied it would be easy to copy/move to the new phone. Thanks for any ideas.
 

Dogbonesix

Active Member
Licensed User
Longtime User
Code that worked for me between the tracks.

Dim pho As Bitmap
pho = cu.GetPhoto(CkList2) ' Contact record ID selected from list
If pho.IsInitialized = True Then
ImageView1.Bitmap = pho
' ==========================
Dim out As OutputStream
out = File.OpenOutput(File.DirRootExternal, "Test.png", False)
pho.WriteToStream(out, 100, "PNG")
out.Close
' ==============================
Else
ImageView1.Bitmap = LoadBitmap(File.DirAssets,"girl.png")
End If
 
Upvote 0
Top