You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been testing out serializing and deserializing torrents with methods I found here, but I keep getting an error upon deserialization(IE, running new Torrent(bytes, seed):
com.turn.ttorrent.bcodec.InvalidBEncodingException: Unknown indicator '99'
at com.turn.ttorrent.bcodec.BDecoder.bdecode(BDecoder.java:142)
at com.turn.ttorrent.bcodec.BDecoder.bdecodeMap(BDecoder.java:278)
at com.turn.ttorrent.bcodec.BDecoder.bdecode(BDecoder.java:140)
at com.turn.ttorrent.bcodec.BDecoder.bdecodeMap(BDecoder.java:280)
at com.turn.ttorrent.bcodec.BDecoder.bdecode(BDecoder.java:140)
at com.turn.ttorrent.bcodec.BDecoder.bdecode(BDecoder.java:88)
at com.turn.ttorrent.common.Torrent.<init>(Torrent.java:137)
publicstaticTorrentdeserializeTorrentFile(Stringdata) {
Torrentt = null;
try {
byte[] b = data.getBytes("UTF-8");
t = newTorrent(b, false); // ERROR COMES ON THIS LINE
} catch (IOExceptione) {
// TODO Auto-generated catch blocke.printStackTrace();
}
returnt;
}
The text was updated successfully, but these errors were encountered:
I've been testing out serializing and deserializing torrents with methods I found here, but I keep getting an error upon deserialization(IE, running
new Torrent(bytes, seed)
:Here's how I'm using it:
Serializing:
Deserializing:
The text was updated successfully, but these errors were encountered: