Skip to content

Why doesn't this zip data work? #483

Discussion options

You must be logged in to vote

It doesn't work because kmzData is a binary string. You should convert it to a Uint8Array instance, see below.

import * as zip from "https://deno.land/x/zipjs/index.js";

const kmzB64Data = 'UEsDBBQAAAAAAFNBPVgl/aghwAEAAMABAAAHAAAAZG9jLmttbDw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04Ij8+CjxrbWwgeG1sbnM9Imh0dHA6Ly93d3cub3Blbmdpcy5uZXQva21sLzIuMiI+CiAgPEZvbGRlcj4KICAgIDxHcm91bmRPdmVybGF5PgogICAgICA8SWNvbj4KICAgICAgICA8aHJlZj5kb2MucG5nPC9ocmVmPgogICAgICA8L0ljb24+CiAgICAgIDxMYXRMb25Cb3g+CiAgICAgICAgPG5vcnRoPjM4Ljg5ODE4NjQ2MDcwOTQ2Nzg8L25vcnRoPgogICAgICAgIDxzb3V0aD4zOC44OTMwMjUwMDkzMDAzMTY3PC9zb3V0aD4KICAgICAgICA8ZWFzdD4tNzcuMDM1NzMxNjAwNTAzMDU1NTwvZWFzdD4KICAgICAgICA8d2VzdD4tNzcuMDE4NDM2NT…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gildas-lormeau
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #482 on January 29, 2024 17:11.