-
inputstream.read truncates first (zero) byte
Hi,
I'm reading data from a socket like this:
byte[] data = new byte[12];
inputStream.read(data); // Actual byte transfer
Everything works great, except the first byte (which is typcially 0x00, but
can sometimes be 0x01) is being truncated when it is 0x00.
Has any one seen this, and is there a workaround?
Best,
Ted
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks