Well then can anyone give me some advice on this code?

VB Code:
  1. Public Function Download() As FileStream        
  2.         Return New FileStream("C:\Test.bmp", FileMode.Open, FileAccess.Read)
  3. End Function
  4.  
  5. Public Sub Run
  6.         Dim fileContent As Byte()
  7.         Dim MyStream As FileStream = Download()
  8.  
  9.         MyStream.Read(fileContent, 0, Integer.MaxValue)
  10.         MyStream.Close()
  11.  
  12.         MyStream = New FileStream("C:\TEST2.BMP", FileMode.Create, FileAccess.Write)
  13.         MyStream.Write(fileContent, 0, fileContent.Length)
  14.         MyStream.Close()
  15. End Sub

The Download() function will normally be a remotable class, but I've simplified things above. When the Run() method is called, I get the following error

Code:
System.ArgumentNullException
Additional information: Buffer cannot be null
Or if anyone has any examples of transferring files using remoting then please let me know. Thanks...

Justin.