I’m going to a Web Service an Array of Byte, the issue that is going the bytes with values from 0-255 and the Web Service accepts only value of -127 to 127, someone could help me?
A snippet of the code is this:
BytesFile : array [1..66000] of Byte;
AssignFile(fileB,'C:\img.jpg');
Reset(fileB,1);
BlockRead(fileB, BytesFile , SizeOf(BytesFile ), NumRead);
-127-127 is basically a signed byte.
For that in Delphi you can use a ShortInt, see here:
http://www.delphibasics.co.uk/RTL.asp?Name=ShortInt