Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Revision on Byte to Hexadecimal
Message
From
03/02/2014 11:36:10
 
 
To
03/02/2014 11:27:05
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01592982
Message ID:
01593011
Views:
21
>Still, you need a USING. If you don't do that, you're giving extra work to the garbage collector

Like this?
                    ' Open the destination
                    Using loStream As Stream = New FileStream(cFileName, FileMode.Open)

                        ' Create the crypto service provider object
                        Using loMD5CryptoServiceProvider = New MD5CryptoServiceProvider()

                            ' Compute the hash of the fileStream
                            oMD5 = loMD5CryptoServiceProvider.ComputeHash(loStream)

                        End Using

                    End Using
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform