readline() doesnt read whole line, are there another terminating characters ?
i constructed socket communication between java(receiver) and c++(sender) machines. i want to send image as char array c++ to java. by using opencv library, i can read image file on system and convert it to rgb char array. but for some images, taken from cam and converted after bmp, i can't send them. in java side readline() method couldnt read all the line. can be there any terminatying characters in the image file ? or how can i fix this ?
is there another reading method which i can read only i.e first 270000 characters from socket ?