Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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!