developer155
Programmer
I have a byte array where I put the picture from a web site. I need to check if the pic was correctly copied so I need to make sure the array is not NULL. How is that done? Here is the snippet of the code:
Dim Buffer() As Byte
Dim FileNumber As Integer
FileNumber = FreeFile()
Open URL(some URL) For Binary Access Read Write As #FileNumber
Buffer = Inet1.OpenURL(URL, icByteArray) 'this uses INET control to get the picture by bytes
'
Put #FileNumber, Buffer() 'puts image in the buffer
Now I need to check if Buffer() is not empty
thanks
Dim Buffer() As Byte
Dim FileNumber As Integer
FileNumber = FreeFile()
Open URL(some URL) For Binary Access Read Write As #FileNumber
Buffer = Inet1.OpenURL(URL, icByteArray) 'this uses INET control to get the picture by bytes
'
Put #FileNumber, Buffer() 'puts image in the buffer
Now I need to check if Buffer() is not empty
thanks