I'm in a situation where I'm sending a file to an MP3 player, and this player needs to know the file length to show progress bar properly. The problem is that this MP3 comes from a file that is the result of an on-the-fly conversion, so I cannot know the final file size. Just an estimate (Bitrate * duration). So, when setting an erroneous Content-Length for the file, the file cannot be served, the download being hanging at the end with a network error.
Is there a way to force browsers to accept the data as final and as-is? For the player, this is not a problem, since it will probably just stops if it reaches an end sooner than it should.
[Edit]
For now, I'll try to add '00' bytes until I reach the good size and see how it is played.