Larry Brister
asked on
ASP.NET file contentlength
I'm passing in a variable to a sub as a string.
Private Sub UpdateDb(ByVal filename As String)
I need to get the file length. (size)
When I was passing it in as a collection I could get the file lengthwith
Dim _size = filename.contentlength
I still need the file size...some help?
Private Sub UpdateDb(ByVal filename As String)
I need to get the file length. (size)
When I was passing it in as a collection I could get the file lengthwith
Dim _size = filename.contentlength
I still need the file size...some help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is it possible to pass the file length as the parameter too!!
ASKER
x_com:
That gives me the character length. I need the file size
That gives me the character length. I need the file size
to get the file size in kb do this..
filename.length/1024
filename.length/1024
ASKER
srivatsavaye:
filename.length gives me the characterlength of the filename.
filename.length gives me the characterlength of the filename.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That's it guys. Thanks and splitting points