WebService returning byte array

lamy

Regular
Joined
Dec 12, 2005
Messages
56
Location
under your bed
im making an auto-update program which uses a webservice, this webservice does all returning the version of the patch and all that, including the file itself which i return as byte array, its already working when it comes to waiting until it is fully downloaded, what i did is make a structure for both the byte array and the length of the byte array, in my program i loop until the size of the data is the same as the length of the PatchFile

Visual Basic:
Public Structure PatchFile
   Dim data As Byte()
   Dim length As Int64
End Structure

but doing this sometimes gives me a Not-Responding application, having Nothing on data even if did request for it.

is there a better way to return a file webservice or not? :confused:

(i know theres clickonce but i already had my codes and this is what all i have left )
 
Back
Top