Re: [Simpleweb-Support] Wrong Parameter value
Brought to you by:
niallg
From: Bat <bap...@gm...> - 2007-01-30 00:17:03
|
Hi Nial Thanks for your answer but I'm not sure to get what you mean... Actually I'm writting Bittorrent softwares (client, tracker, publisher, ...) and I use Simple as the web server that handle the request for uploading torrents and providing peers information. The protocol requires some data to be sent to the tracker as parameters, for example file or peer id. These values are 20 random bytes and could therefore be any value between 00 and FF, and could possibly not represent any real character. The point is I don't have to display their value as a string, but just get the value (in hex for example...). My problem is, Simple does something that I don't get, because sometimes (but rarely), it works and the value I get is correct, but in most cases, the value is wrong and there are missing byte(s). In short, the String (or byte[] I would prefer) should ALWAYS be of length 20, but this is not the case... So I don't understand your answer about base64, since the String I get with the method getParameter() is of the wrong length and could therefore not serve... By the way, if I'm missing something, I would really appreciate if you could explain me a bit farther... Thank you... Baptiste |