Re: asp file read binary data in sql server 2000
From: Manohar Kamath [MVP] (mkamath_at_TAKETHISOUTkamath.com)
Date: 07/30/04
- Next message: JP SIngh: "Script errors in ASP"
- Previous message: CJM: "OT?: Application Architecture Question"
- In reply to: izumi: "asp file read binary data in sql server 2000"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Jul 2004 06:41:52 -0500
You need to tell the browser the MIME type of incoming stream. Perhaps
something like
Response.ContentType = "application/msword"
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"izumi" <test@test.com> wrote in message
news:egiGqFhdEHA.1656@TK2MSFTNGP09.phx.gbl...
> I write the code as follows.....
>
> But I cannot print the binary data as meaningful data format.
>
> any idea????????
>
>
> Response.Buffer = True
> Const adTypeBinary = 1
> Set objStream = Server.CreateObject("ADODB.Stream")
> objStream.Type = adTypeBinary
>
> response.binarywrite rs("abc")
>
>
- Next message: JP SIngh: "Script errors in ASP"
- Previous message: CJM: "OT?: Application Architecture Question"
- In reply to: izumi: "asp file read binary data in sql server 2000"
- Messages sorted by: [ date ] [ thread ]