Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using FTP and clearing out memory
Message
De
26/04/2013 09:18:59
 
 
À
26/04/2013 09:11:57
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01571897
Message ID:
01571971
Vues:
34
>Ok, I got it. Because, the inner Using can have a various type, it is an overload, I have to specify what loStream is:


I was actually looking at this : a problem with the constructor overloads of StreamReader
But would have needed some time to figure out exactly how



Keep us informed whether the extra usings solves your problem

>
>                        Using loFtpWebResponse = loFtpWebRequest.GetResponse()
>
>                            Using loStream As System.IO.Stream = loFtpWebResponse.GetResponseStream()
>
>                                Using loStreamReader As New StreamReader(loStream)
>
>                                    ' Load the files into the string builder
>                                    loStringBuilder.LoadString(loStreamReader.ReadToEnd())
>
>                                End Using
>
>                            End Using
>
>                        End Using
>
>
>Thanks for the help, this works.
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform