Data Analyzer

  • Status: Closed
  • Nagroda: $20
  • Uzyskane Zgłoszenia: 6
  • Zwycięzca: sundarsankaran

Opis Konkursu

Map two files on the basis of one parameter (available in both the files) and look for corresponding other fields and display it on a webpage.
Need to fetch the first file from the local machine while the second file is present on the network location.
The problem I am facing right now is that there is zipped folder in the network location. I want to unzip the zipped folder and extract the particular file available inside that.
I am able to access the server location but I am struggling in unzipping the folder.
I have a specific path, that I want to pass (for eg: :C:\Users\Public\abc.zip). I have already stored this path in a variable (not using HTML for this)
Refer link:
https://gildas-lormeau.github.io/zip.js/demos/demo2.html
this allows the user to manually select the zip folder and displays all the file contents. While I dont want to select the zip folder manually, I have the path. I somehow want to pass the path the path, extract the files. Once the files are extracted, I want to read data from a particular xml file and store it in a string variable

Zalecane Umiejętności

Opinie o Pracodawcy

“Great working with Sundar. Really supportive, helpful. Helps until finishes the activity. Knows how to find the solution even for a complex task.”

Zdjęcie profilowe anjalirathore910, United States.

Najlepsze zgłoszenia do tego konkursu

Zobacz więcej zgłoszeń

Publiczna Tablica Wyjaśnień

  • korneldevdesign
    korneldevdesign
    • 5 lat temu

    What you want to achieve cannot be done in modern browsers, because they implement certain security restrictions.

    • 5 lat temu
    1. korneldevdesign
      korneldevdesign
      • 5 lat temu

      I see some possible solutions however. For example you can serve up your file locally with a Node.js server and then just fetch as a "remote" resource.
      Or you could use just use Node.js and and install another library to work with zip archives.

      // "zip" is a package on npmjs.org to work with zip archives
      const zip = require('zip') // npm install zip
      const fs = require('fs')

      const pathToZipFile = './local.zip';
      const localZipFile = fs.readFileSync(pathToZipFile)
      const reader = zip.Reader(localZipFile)

      const obj = reader.toObject('utf8')
      console.log(obj)

      // if there is only one file in the zip archive
      const localXMLContents = Object.values(obj)[0]

      console.log(localXMLContents)

      • 5 lat temu
  • azharulislam07
    azharulislam07
    • 5 lat temu

    Sir, thank you very much for me. I will give you your profile

    • 5 lat temu
  • sundarsankaran
    sundarsankaran
    • 5 lat temu

    Are you using JavaScript ? to extract zip

    • 5 lat temu
    1. anjalirathore910
      Organizator Konkursu
      • 5 lat temu

      Yes, I am using javascript.

      • 5 lat temu
    2. anjalirathore910
      Organizator Konkursu
      • 5 lat temu

      I found the sample code in https://gildas-lormeau.github.io/zip.js/ for reading zip files. I am trying to modify that code for my purpose

      • 5 lat temu

Pokaż więcej komentarzy

Jak rozpocząć z konkursami?

  • Opublikuj swój konkurs

    Opublikuj swój Konkurs Łatwo i szybko

  • Uzyskaj tysiące ofert

    Uzyskaj Tysiące Ofert Z całego świata

  • Nagródź najlepszą ofertę

    Nagródź najlepszą ofertę Pobieraj pliki - Łatwo!

Opublikuj Konkurs Teraz lub dołącz do nas już dziś!