Originally Posted by LaVolpe
What is the purpose of the cls file? My guess is it is a byte to Base64 converter. Maybe post a couple of the public function names so we can see.
If it is a byte to base64 converter, open the JPG file in binary, using VB. Then read the file into a byte array, send the array to the class function which should return another array or string. Send that array/string across the net.
To use the cls file. Declare it in your routines, something like the following.
Have no idea what your class filename is, let's just assume it is default Class1.
Dim myClass As Class1
Set myClass = New Class1
-- now you can call its functions, i.e., myClass.FunctionName