Re: Witango-Talk: Image & pdf from database [WORKING]

2003-03-26 Thread Ezra
After mucking around with it a while and reading a bit of rfc2616 and asking wittango to show me its default header I got it to work.

<@ASSIGN "filedata" "Local" ,7F7F,"><@COL 4 ,7F7F,">><@ASSIGN "filesize" "Local" ,7F7F,"><@VARINFO LOCAL$filedata ,7F7F,">>
<@assign "encodeResults" "local" ,7F7F,">>
<@ASSIGN local$httpHeader "HTTP/1.1  <@Content-Type: application/pdf; name=<@dq><@var local$resultset[1,2] Content-Disposition: inline; filename=<@dq><@var local$resultset[1,2] ,7F7F,">>

NEW ACTION
<@purgeresults><@var request$filedata >


Thanks to Scott and Ben.

thanks,
Ezra

On Wednesday, March 26, 2003, at 04:54 PM, Scott Cadillac wrote:

Hi Ezra,

Try putting quotes around your filenames in the header. Use <@DQ> instead of
actual quotes so it doesn't mess up the quote nesting of your variable
assignment.

Then, put <@VAR LOCAL$data ENCODING=NONE> on the first line, in the last
Results Action window of the TAF and also use <@PURGERESULTS>, like so:

---Last Results Action of TAF---
<@PURGERESULTS><@VAR LOCAL$data ENCODING=NONE>


And make sure there are no spaces or carriage-returns after the variable.

Hope this helps. Cheers

Scott Cadillac,
Witango.org - http://witango.org
403-281-6090 - [EMAIL PROTECTED]
--
Information for the Witango Developer Community
-

XML-Extranet - http://xml-extra.net
403-281-6090 - [EMAIL PROTECTED]
--
Well-formed Development (for hire)
-


- Original Message -
From: "Ezra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 12:54 PM
Subject: Witango-Talk: Image & pdf from database


Hi,

In my db I've got a some images (gif/jpeg) and PDF files What should
the proper httpdHeader values be for there data types?  I tried the
following but it crashes witango!


<@ASSIGN NAME="data" SCOPE="Local" VALUE="<@COL NUM='2' ENCODING=NONE>">
<@ASSIGN NAME=size" SCOPE="Local" VALUE="<@VARINFO LOCAL$data SIZE>">
<@ASSIGN LOCAL$encodeResults FALSE>

<@ASSIGN local$httpHeader "Content-Type: image/gif; name=<@COL 1
ENCODING=NONE><@CRLF>Content-Disposition: inline; filename=<@COL 1
ENCODING=NONE><@CRLF>Content-Length: @@local$size<@CRLF><@CRLF>">

<@VAR LOCAL$data ENCODING=NONE>



any ideas?



thanks,
ezra

TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body


TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body



Re: Witango-Talk: Image & pdf from database

2003-03-26 Thread Scott Cadillac
Hi Ezra,

Try putting quotes around your filenames in the header. Use <@DQ> instead of
actual quotes so it doesn't mess up the quote nesting of your variable
assignment.

Then, put <@VAR LOCAL$data ENCODING=NONE> on the first line, in the last
Results Action window of the TAF and also use <@PURGERESULTS>, like so:

---Last Results Action of TAF---
<@PURGERESULTS><@VAR LOCAL$data ENCODING=NONE>


And make sure there are no spaces or carriage-returns after the variable.

Hope this helps. Cheers

Scott Cadillac,
Witango.org - http://witango.org
403-281-6090 - [EMAIL PROTECTED]
--
Information for the Witango Developer Community
-

XML-Extranet - http://xml-extra.net
403-281-6090 - [EMAIL PROTECTED]
--
Well-formed Development (for hire)
-


- Original Message -
From: "Ezra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 12:54 PM
Subject: Witango-Talk: Image & pdf from database


> Hi,
>
> In my db I've got a some images (gif/jpeg) and PDF files What should
> the proper httpdHeader values be for there data types?  I tried the
> following but it crashes witango!
>
>
> <@ASSIGN NAME="data" SCOPE="Local" VALUE="<@COL NUM='2' ENCODING=NONE>">
> <@ASSIGN NAME=size" SCOPE="Local" VALUE="<@VARINFO LOCAL$data SIZE>">
> <@ASSIGN LOCAL$encodeResults FALSE>
>
> <@ASSIGN local$httpHeader "Content-Type: image/gif; name=<@COL 1
> ENCODING=NONE><@CRLF>Content-Disposition: inline; filename=<@COL 1
> ENCODING=NONE><@CRLF>Content-Length: @@local$size<@CRLF><@CRLF>">
>
> <@VAR LOCAL$data ENCODING=NONE>
>
>
>
> any ideas?
>
>
>
> thanks,
> ezra
> 
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
> with unsubscribe witango-talk in the message body


TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body


RE: Witango-Talk: Image & pdf from database

2003-03-26 Thread Ben Johansen








It has been my experience that all this
should be on one line without spaces and/or crlf’s 



Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm
Authorized MDaemon Mail Server Reseller
http://www.pcforge.com/AltN.htm



-Original Message-
From: Ezra
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003
11:54 AM
To: [EMAIL PROTECTED]
Subject: Witango-Talk: Image &
pdf from database

 

Hi,

In my db I've got a some images (gif/jpeg) and PDF files What should the proper
httpdHeader values be for there data types? I tried the following but it
crashes witango!


<@ASSIGN
NAME="data"
SCOPE="Local"
VALUE="<@COL
NUM='2'
ENCODING=NONE>">
<@ASSIGN NAME=size"
SCOPE="Local"
VALUE="<@VARINFO
LOCAL$data SIZE>">
<@ASSIGN LOCAL$encodeResults
FALSE>

<@ASSIGN
local$httpHeader "Content-Type:
image/gif; name=<@COL 1 ENCODING=NONE><@CRLF>Content-Disposition:
inline; filename=<@COL 1
ENCODING=NONE><@CRLF>Content-Length:
@@local$size<@CRLF><@CRLF>">

<@VAR LOCAL$data
ENCODING=NONE>



any ideas?



thanks,
ezra









TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body


Witango-Talk: Image & pdf from database

2003-03-26 Thread Ezra
Hi,

In my db I've got a some images (gif/jpeg) and PDF files What should the proper httpdHeader values be for there data types?  I tried the following but it crashes witango!


<@ASSIGN "data" "Local" ,7F7F,"><@COL '2' ,7F7F,">>
<@ASSIGN size" "Local" ,7F7F,"><@VARINFO LOCAL$data ,7F7F,">>
<@ASSIGN LOCAL$encodeResults >

<@ASSIGN local$httpHeader "Content-Type: image/gif; name=<@COL 1 Content-Disposition: inline; filename=<@COL 1 ENCODING=NONE><@CRLF>Content-Length: @@local$size<@CRLF><@CRLF>">

<@VAR LOCAL$data >



any ideas?



thanks,
ezra