Skip to content

Loading ZIP in Android #59

@jonathannaguin

Description

@jonathannaguin

Hi,

I am having a weird problem in Android.

I compress a string in my server and I read it on my device/browser. It is working fine using desktop browsers and iOS browser, but in Android... It crashes.

Using this code:

//Got from the server
var data = 'UEsDBAoAAAAAAHhkCUMAAAAAAAAAAAAAAAAEAAAAbnVsbFBLAQIUAAoAAAAAAHhkCUMAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAABudWxsUEsFBgAAAAABAAEAMgAAACIAAAAAAA=='; 

var zip = new JSZip(data, {base64: true});

In Android, shows this error:

Web Console: Uncaught Error: Corrupted zip or bug : unexpected signature (\x50\x4B\x05\x06\x00\x00\x00\x00\x01\x00\x01\x00\x32\x00\x00\x00\x22\x00\x00\x00\x00\x00, expected \x50\x4B\x05\x06)

FYI, I am using HTC One Mini running Android 4.2.2 and MioCare running Android 4.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions