aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes 	 string to byte, cant store values like E8 for MAC address. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply locked New topic
Author

string to byte, cant store values like E8 for MAC address.

usman sarwar
Greenhorn

Joined: Nov 03, 2008
Posts: 3
hi guyz,

I am facing a problem related with byte value

actually what I wana do is to assign string value to byte array. String value is a hexa-decimal value of MAC address.
I know how to assign values but the problem is byte in java is signed, hence i cannot store values like E8.

regards
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8262

Please do not post the same question more than once.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: string to byte, cant store values like E8 for MAC address.
 
Similar Threads
string to byte, cant store values like E8 for MAC address.
MAC Address and System.out.format
DatagramPacket address parameter
ByteArray in XML?
byte[] for IP address storage????