I am sending some binary data ([byte[]) (using the java DefaultHttpclient) to the servlet running on a apache tomcat server. My question is do I n开发者_高级运维eed to worry about machine endianness before sending data to the server. Does DefaultHttpClient automatically take care of converting data to network byte order ?
Please help.
It's using Java on both ends, and HTTP on the wire, so you don't have to worry about endian issues. You do have to encode your byte array, of course.
精彩评论