tinytag icon indicating copy to clipboard operation
tinytag copied to clipboard

How to handle filebuffer instead of filenames

Open CodSnow opened this issue 3 years ago • 0 comments

Obtaining audio files via network transfer

  • e.g:
    • img = request.file.get('xxx')    # img_buff = BufferedReader(img)
      img_byte = BufferedReader.read(img_buff)    Flac_info = Flac(img_buff, len(img_byte))    info = Flac_info.load(tags=True, duration=True, image=True)

Then an error occurs:
  Invalid flac header

And Replace Flac with ID3, an error occurs:
  Unexpected end of file

CodSnow avatar Apr 05 '22 06:04 CodSnow