Again, this is from memory, but I am pretty sure @length will work even if null in middle of data, however, any other string method, will not. Someone would have to do some testing to be sure. But I created some custom http requests for images, and could get @length fine, but will null in them, witango would blow up if I tried to use any other string method except substring to separate text data from binary data.

--

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/

On May 9, 2008, at 12:53 PM, Jesse Parker wrote:

If I remember correctly, <@LENGTH> and <@CALC "len(..)"> use strlen() to figure out the length of the string. So, these tags will stop counting as
soon as they encounter a NULL (ASCII 0.)

Why not just put the PDF in a directory on your webserver and link to it?

-----Original Message-----
From: Kent Swisher [mailto:[EMAIL PROTECTED]
Sent: Friday, May 09, 2008 3:46 PM
To: [email protected]
Subject: Re: Witango-Talk: Link to download file


My intuition says they may be related.

Problem 1: Witango provides wrong LENGTH value with some files.
Problem 2: When content-length is off by 1 byte, some browsers will have
problems.  What kind of problems was not stated.

Robert said on rare cases when happened, it was specific to a file.

Robert - Did this problem only happen with PDFs or other file types too?
 When you have the problem, did the file download successfully but not
open via browser, or could not get to open in windows at all?

Bill - With these MacOS9 uploaded PDFs, did Witango provide the wrong
LENGTH value? Would they just not open via the browser, or could not be
opened at all in windows?

--
--> Kent Swisher                  Engineering Tools
--> Alcatel-Lucent                Application Support Engineer
--> Wireline Access Products      [EMAIL PROTECTED]
--> Petaluma, CA                  707-792-7116  (on net 2-855-7116)


On 5/9/2008 10:10 AM, Robert Garcia wrote:
That makes sense, but that wasn't the issue I saw. This was a huge pdf library, loaded into db myself from disk. When witango did the length of the data retrieved from db, sometimes off, rare, but it happens. Also, it would happen on the same pdf over and over, and none of the others.
When using binary length function from mysql, no issues. Or, when
populating the database with a LENGTH value, calculating from RB on the
way, no issue. The difference was usually 1 byte.

On May 9, 2008, at 9:38 AM, William M Conlon wrote:

This issue I experienced was that pdf files would not open in
windows.  > It turned out that the pdf downloaded to windows was one
byte longer
than the pdf uploaded from MacOS9.  When I did a side-by-side
comparison (pdfs are readable in a text editor even though there are
non-printing characters) there was an extra line terminator (I
forget which one).

Bill

William M. Conlon, P.E., Ph.D.
To the Point
2330 Bryant Street
Palo Alto, CA 94301
 vox:  650.327.2175 (direct)
 fax:  650.329.8335
mobile:  650.906.9929
e-mail:  mailto:[EMAIL PROTECTED]
 web:  http://www.tothept.com
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to