开发者

Sending data to servlet over httpo using java DefaultHttpClient

开发者 https://www.devze.com 2023-01-31 22:48 出处:网络
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 b

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消