Using Internet Transfer Control the GetChunk returns 'junk' data
Posted on 2006-06-05
I'm working in access 2003 using the Microsoft Internet Transfer Control ActiveX control and I've run the
to see if a file exists on the site...
using the GetChunk to get the returned data I am getting the file name of the file (when it exists) followed by four squares (unknown symbols?) of junk data.
if display the results in a msgbox the junk characters dont print, but how do I remove them so i can evaluate the data in code?
I dont want to just remove the last 4 characters, cause i dont know what they are or if there will always be just 4 junk characters?
In VB I would use something like:
RetreivedData = Left$(RetreivedData , InStr(1, RetreivedData , Chr$(0)) - 1)
But that doesn't seem to want to work for me...
Any help greatly appreciated :)