1

How to correct unzip zip file on BrightSign LS424/HD233

Hello,

I met a trouble with unzipping on BrightSign LS424/HD233 while use my web application.

For unzip i use

  • jszip - i meet an error with jszip library, thats first time work perfect and all next times doesnt work with error "corrupted zip: can't find end of central directory"
  • exec to execute command "unzip file/path/fileName.zip -d target/path" - meet an error "Short read"

But i need to unzip one little file (less then 1mb) with very hard structure ("archive/folder with other folders and files/folder with other folders and files/folder with file").

And i dont know that can be problem: device or library, if device - how to work with unzipping hard structure, if library - what can be better for use?

I can read file using fs.readFile(path_to_file), but at unzip logic i met this problem

1 comment

  • 1
    Avatar
    Mark Richards

    Its certainly possible to unpack a zip file on a brightsign. I've no experience using jszip, but if you want to go down the script route you could use something like this:

    package = CreateObject("roBrightPackage", path$+"autorun.zip")
    'package.SetPassword("test")
    package.Unpack("SD:/")
    'package.Unpack("SSD:/")

    The above code snipet is part of the autorun.brs file which is invaluable if you want to configure a brightsign remotely:

    https://support.brightsign.biz/hc/en-us/articles/360046935113-Creating-an-autorun-zip 

Please sign in to leave a comment.