🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.api
1 messages
1 total messages Started by Leo (F.Hou) Fri, 27 Jun 2003 21:43
help about byte - integer conversion
#492
Author: Leo (F.Hou)
Date: Fri, 27 Jun 2003 21:43
21 lines
1500 bytes
Hi experts,

I need to write a program works as follows:

1.read bytes in, block by block, from a file; convert to BigInteger; apply a
function; serialize the result

2.some one else deserialize the result; apply the inverse function; write
bytes back to restore the file.


Question: The program I have now can do ASCII files but not other types. The
reason I concluded is the value 0x00 or consecutive 0x00 is possible to be
at the beginning of a block, thus be ignored in the conversion.

Can anyone suggest a way to solve this?

Thanks a lot


Leo
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads