S
Simon Pulo
Hello again,
I'm having problems with sending data to the server, this is the code i am
using
int index = 0;
while (index < b64String.Length)
{
int size = Math.Min(b64String.Length - index, 77);
index += size;
dts = b64String.Substring(index, size);
Data = dts + CRLF;
szData = Encoding.ASCII.GetBytes(Data.ToCharArray());
NetStrm.Write(szData, 0, szData.Length);
}
When i run it i get the following error
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred
in mscorlib.dll
Additional information: Index and length must refer to a location within the
string.
Pointing to the line: dts = b64String.Substring(index, size);
anyone got any idea's?
I'm having problems with sending data to the server, this is the code i am
using
int index = 0;
while (index < b64String.Length)
{
int size = Math.Min(b64String.Length - index, 77);
index += size;
dts = b64String.Substring(index, size);
Data = dts + CRLF;
szData = Encoding.ASCII.GetBytes(Data.ToCharArray());
NetStrm.Write(szData, 0, szData.Length);
}
When i run it i get the following error
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred
in mscorlib.dll
Additional information: Index and length must refer to a location within the
string.
Pointing to the line: dts = b64String.Substring(index, size);
anyone got any idea's?