How to get the length of the mp3 file without downloading the entire file
For images, there is a method to determine the size of the picture without full rolling. https://stackoverflow.com/questions/111345/getting-image-dimensions-without-reading-the-entire-file
What about mp3 files? Is there anything for such files?
Due to the possible VBR and the unclear length of the tags (especially if the pictures are napihano) - in general, it is not possible
It is possible to estimate the size, the orbit of some of the first Framesms (the battrate is indicated in the headline of each freima and can be understood by the CBR there or by the VBR method) and the hope that the picture is small if it is.
If the remote server is supported, and most likely yes, to send the Range Request (i.e. read not entirely but only the beginning) or less beautifully to break the conject by reading a piece.
In theory, you can try to read the same page, but it's already a few requests for one file-- thetega live either at the beginning or at the end of the file.