Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Dim uploadBytesSize As Integer = 200000 Dim sr As New IO.StreamReader("C:\A Large File.mp4") Dim fileLength As Long = sr.BaseStream.Length Dim bytesRemaining As Long = fileLength Dim bufferSize As Long Dim bytesUploaded As Long = 0 Do If bytesRemaining <= uploadBytesSize Then buffersize = bytesRemaining Else bufferSize = uploadBytesSize End If Dim buffer(bufferSize - 1) As Byte sr.BaseStream.Position = bytesUploaded sr.BaseStream.Read(buffer, 0, bufferSize) bytesUploaded += bufferSize uploadFile(buffer) Loop Until bytesRemaining < uploadBytesSize
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|vb.net 1 month apart||11||39|
|VB.net Invalid Cast From 'Enum' to 'DateTime' Couldn't store <Null> in oDate Column||4||37|