Thank you
Here is where I am :
For Each records() As Object In result.Rows
Dim data() As Byte =records(0)
Dim out As OutputStream
Dim Ini As InputStream
Ini.InitializeFromBytesArray(data,0,1)
Log(data.Length)
out=File.OpenOutput(File.DirDocuments,oFileName.Trim , False)
out.WriteBytes(data, 0, data.Length)
out.Close
phone.AddImageToAlbum(oFileName) <---------------------------------Throws error
Next
Trying to add the image to the album immediately after downloading the image file