NetTalk Central

Author Topic: LSZip and NT WebApp  (Read 3026 times)

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
LSZip and NT WebApp
« on: May 06, 2013, 08:09:57 AM »
Hi All,

Is anyone here using LSZip in there NT Web Server app without a window to zip files inside of there file download procedure?
Any generic code you could share would be most welcome?

Ashley
« Last Edit: May 06, 2013, 09:04:35 AM by astahl »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: LSZip and NT WebApp
« Reply #1 on: May 06, 2013, 10:36:20 PM »
Hi Ashley,

I'm not using LsZip - but tell me more about what you have in mind.
NT7 supports dynamic file compression - meaning that files can be sent compressed, even if they are not zip files.
(so from a pure speed point of view, there's no benefit to Zipping.)

cheers
Bruce

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: LSZip and NT WebApp
« Reply #2 on: May 07, 2013, 02:56:39 AM »
Hi Bruce,

In my web app I need to zip 2 pdf's and 1 csv file once the user is validated. I do not want them to have 3 separate downloads as this causes more traffic. Can I use the LSZip without a window or a window hidden called as a procedure or should I use a source procedure with no window?


Ashley

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: LSZip and NT WebApp
« Reply #3 on: May 07, 2013, 04:35:45 AM »
sorry Ashley, I don't know LsZip, so I don't know the answer to that one...

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: LSZip and NT WebApp
« Reply #4 on: May 07, 2013, 06:08:52 AM »
Hi Bruce,

After some experimentation I found the solution. I just created a source procedure and call it from my download page in the "Before Header" embed where I do my validation. Work quite nicely.

This may not be the correct place but I am enclosing the source procedure code.

Thanks,

Ashley

[attachment deleted by admin]