Take the 2-minute tour ×  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;  BlockRead(fileB, BytesFile ,
SizeOf(BytesFile ), NumRead); share|improve this question As a
side note, you shouldn't be using AssignFile, Reset and
BlockRead they're archaic. Look up TFileStream and use that. – 
Lloyd Nov 1 '12 at 11:46 that that your code would fail on
readonly files, uch as network or CD-ROM. There is global
FileMode variable. Set it to zero before ReSet to open read-only
or set it to two to open read-write (default). However better
use modern tools like TFileStream or IOUTils unit or David's
fast file reader class. stackoverflow.com/questions/1642220 – 
Arioch 'The Nov 1 '12 at 13:26 add comment  3 Answers  up vote 2
down vote accepted  -127-127 is basically a signed byte.  For
that in Delphi you can use a ShortInt