Dim compressed As Byte = ConvertToByteArray(source)
If that's no help, what are the errors you are getting?
Bort, correct me if I'm wrong, but the "ConvertToByteArray" function would seem to return a Byte() object. As such, wouldn't you want the variable being set to the function's output to be a Byte array, rather than a Byte? Then technically either of the following would be correct:
Dim compressed() as Byte = ConvertToByteArray(source)
Dim compressed as Byte() = ConvertToByteArray(source)
This post has been edited by Lumenii: 30 March 2010 - 02:13 PM