Hey list !

I’ am struggling with a http problem ’again’.

I’ll  bring out an tiff blob from the db and put it into

<@ASSIGN request$tiff '@@request$resultSet[1,data]'>

 

then set up the http (yes it’s one row)

 

<@assign request$encodeResults false>

<@ASSIGN request$httpHeader "HTTP/1.1 <@HTTPSTATUSCODE> <@HTTPREASONPHRASE> <@crlf>

Date: <@CURRENTTIMESTAMP FORMAT='datetime:http'><@crlf>Server: Witango <@version> <@crlf>

MIME-Version: 1.0<@crlf>Content-Type: image/tiff<@crlf><@crlf>">

 

And then calls

<@var request$tiff encoding=none>

 

The Imaging software starts up in the browser alright but I get the error:
Can’t open the document. The document format is not supported !!!

If I first get it out from the db and stores it as a file and through the browser open the file its works, so it’s stored correctly in the db.
The size of the blob or file is 21569 bytes.

I use the same procedure for pdf files with Content-Type: application/pdf and it works fine.
I have tried the HTTPLook but I can’t se any problem.

//W2K, SQL Server 2K, IIS, Witango 5.0 (049), Witango 5.0 Studio//

Any ideas ?

 

 

Cheers

Bengt Bredin
-----------------------------------------------------------------------
LabIT Solutions AB
Fagerstagatan 18 A
163 94
Stockholm
SWEDEN

mail : [EMAIL PROTECTED]
-----------------------------------------------------------------------

 

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

Reply via email to