Can you use process substitution?
b2 upload_file bucket <(tar -cj huge-directory) archive.tar.bz2
The argument the command sees will be something like "/dev/fd/42", and the shell will provide the output of tar through that file.