Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: GZipCompression

$
0
0
Re: GZipCompression
Web Connection 5.0
Re: GZipCompression
11/07/2012
01:21:27 PM
3N00SMR09Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Rick Steinwand
Thanks Rick,

Fixed on this end.

For clarification of the problem:

The missing backslash causes a local filename to be created, which works fine as long as the application has rights to write into the current folder. However, with User Account Control enabled access to the local folder (in program files or whereever) is typically not allowed so it will fail.

Fixing the backslash as suggested by Rick writes the file where it's intended to be written which is the temp path which does allow writing of files in non-admin mode.

Thanks Rick,

+++ Rick ---



Has this bug from 5.43 been fixed yet?

FUNCTION GZipCompressString(lcString, lnCompressionLevel)LOCAL lcOutput, lcOutFile, lcInFile, lnHandle*** 1 - 9IFEMPTY(lnCompressionLevel) lnCompressionLevel = -1 && DefaultENDIF*** Must write to fileslcOutFile = SYS(2023) + SYS(2015) + TRANS(Application.ProcessId) + ".gz" lcInFile = lcOutFile + ".in"

lcOutFile above is missing a backslash so only works when exe was run is an admin. It should be:

lcOutFile = ADDBS(SYS(2023)) + SYS(2015) + TRANS(Application.ProcessId) + ".gz"



No that's all you need.

Web Connection only GZips content over 10k (there's a flag in wconnect.h that controls this) so you might not see it on all requests.

+++ Rick ---



Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles