Link to home
Create AccountLog in
Avatar of dba123
dba123

asked on

Value cannot be null. Parameter name: stream

Value cannot be null.
Parameter name: stream

I'm not sure how to resolve this.  I have referenced filefs but before this was working fine:

            Dim file As New IO.FileInfo(sIncomingfile)
            Dim filefs As IO.FileStream = Nothing
            Dim reader As New IO.StreamReader(filefs)  <-------- Problem is that it doesn't like Nothing
ASKER CERTIFIED SOLUTION
Avatar of mastoo
mastoo
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of dba123
dba123

ASKER

I got it, I must have changed something...

            Dim file As New IO.FileInfo(sIncomingfile)
            Dim filefs As New IO.FileStream(file.FullName, IO.FileMode.Open)
Avatar of dba123

ASKER

your version also worked so I'll reward the points.  Thanks!