krish arya wrote:There is a section in the specification a\c to which the sha1 hash value of the piece needs to be in raw binary encoded form.
I m confused coz the sha1 hash are itself in the form of characters so how to do the raw binary encoding....
Actually, sha1 encoding yields binary data... it is just that most of the time, the binary data is further encoded, with either uuencoding or base64, so that it can stored in a properties or xml file.
If the torrent file requires sha1 as binary data, that should make it easier for you -- no need to do the extra steps of encoding to text, and decoding from text.
Henry