@Tyburn said in bdecoder::getbytearrayfromstream:truncated:
"download the text file instead"
If you downloaded a torrent file belongs to torrent then it should contains the data after trying to open w/ your client
by changing its properties to {.torrent} ...
This is a critical task changing files property to other file type association if you're not aware of ...
or see:
https://www.digitaltrends.com/computing/how-to-change-file-associations/
To do this or change properties on Windows Explorer or Folder ...
click on Tools / Folder Options / View /
point to Show hidden files, folders, and drives ...
uncheck Hide empty drives in the Computer folder ...
uncheck Hide extensions for known file types ...
Then hit enter / Hidden Files properties are visible ...
To revert changes or to restore default folder
click on View / Restore Defaults ...
Then hit Apply and OK ...

Ex:



Locate the torrent file you downloaded and rename {.txt} to {.torrent}
If the file is valid torrent then it will open from your client showing content ...
If the file is not valid then you'll get a message, torrent is not valid bencoding ..

Unfortunately there is nothing you can do but to delete the file ...
see:
https://it-qa.com/what-is-bencoding-error/
https://en.wikipedia.org/wiki/Bencode