-1

I'm trying to take an image out of a KMZ file. I currently have the local path of the kmz and the path of the file inside its respective kml file (relative, not global), and what I need is to get the path to load the file to a database. Is there a way to get it using basic string-type paths?

panfleto
  • 1
  • 1
  • 1

1 Answers1

0

A KMZ is just Zip archive (with a .kmz extension instead of .zip), so you should be able to unzip it and access all the files with "zipfile" or similar.

Christiaan Adams
  • 1,257
  • 1
  • 7
  • 13
  • You are right! Thank you, just opened it with zipfile.ZipFile and I was able to access to those files. – panfleto Mar 15 '22 at 12:52