Re: asp file read binary data in sql server 2000

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Manohar Kamath [MVP] (mkamath_at_TAKETHISOUTkamath.com)
Date: 07/30/04


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")
>
>