View Single Post
  #2 (permalink)  
Old 05-28-2009, 2:43 PM
cwfontan cwfontan is offline
VB.NET Forum Enthusiast
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Jan 2009
Posts: 35
Reputation: 17
cwfontan is on a distinguished programming path ahead
Default

resolved. fixed code..

pbUpload.Visible = True
Dim intFbytes As Integer
Dim intOffset As Integer
Dim clsStream As System.IO.Stream = clsRequest.GetRequestStream()
intFbytes = bFile.Length / 100
intFbytes = intFbytes + 1
pbUpload.Maximum = 100
For I As Integer = 0 To 100
If intOffset + intFbytes > bFile.Length Then intFbytes = bFile.Length - intOffset
clsStream.Write(bFile, intOffset, intFbytes)
intOffset += intFbytes
pbUpload.Value = I
Next
clsStream.Close()
clsStream.Dispose()
pbUpload.Visible = False
Reply With Quote