Convert cbz to zip in order to extract file

Describe the problem/error/question

I have a .cbz file and I want to extract it using the Decompress Node so I used Read/Write File node to rename the binary file but the Decompress Node doesn’t recognize it as a zip file so it won’t extract. How can I convert cbz to zip so it can extract?

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:1.92.2
  • **Database (default: SQLite):default
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):npm
  • **Operating system: Windows Server 2022

I’m wondering if the file you have isn’t really a .cbz. The workflow you have worked fine for me.

Maybe try with a different sample file.

Tried your file and it still doesn’t extract the files

Ok… apologies. I reconstructed what you were doing in my own workflow, but I missed one minor detail and that turned out to make the difference between the decompress step working or not.

Change the File Extension option on the Read/Write Files from Disk node from .zip to zip (no dot), and see if that gets it working. You will still have one JSON item with the archive file details in the output but there should be multiple, individual binary items file_0, file_1, etc.

IMO, it would be better if this caused an error instead of just silently doing nothing. :man_shrugging:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.