handler rendering image from ssrs
i have an issue with a chart image displaying on page

--aspx page

    <img id=img1 runat=server />

--aspx.vb

    img1.src = "handler.ashx" (not shown are parameters to ssrs report object)

--ashx.vb

    Dim data As Byte() = Nothing
    data = Report.GetReport(path, format, mimeType, pn, pv)

--Report.vb

    Dim results As Byte() = Nothing
    results = rs.Render(crit.Format, devInfo, extension, encoding, mimeType__1, warnings, _
             streamIDs)
            _extension = extension
            _encoding = encoding
            execInfo = rs.GetExecutionInfo()

--ashx.vb

    context.Response.ClearContent()
    context.Response.ClearHeaders()
    context.Response.Buffer = True
    context.Response.Charset = ""
    context.Response.ContentType = GetContentType(format)
    context.Response.AddHeader("content-disposition:","attachment;filename="rep.jpeg")
    context.Response.AppendHeader("content-length", data.Length.ToString())
    context.Response.BinaryWrite(data)
    context.Response.Flush()
    context.Response.End()


--aspx page

    X <--displays an 'x' on img tag on page


i am missing something. can't see what it is.

thanks,
handler rendering image from ssrs
===

i have an issue with a chart image displaying on page

--aspx page

    <img id=img1 runat=server />

--aspx.vb

    img1.src = "handler.ashx" (not shown are parameters to ssrs report object)

--ashx.vb

    Dim data As Byte() = Nothing
    data = Report.GetReport(path, format, mimeType, pn, pv)

--Report.vb

    Dim results As Byte() = Nothing
    results = rs.Render(crit.Format, devInfo, extension, encoding, mimeType__1, warnings, _
             streamIDs)
            _extension = extension
            _encoding = encoding
            execInfo = rs.GetExecutionInfo()

--ashx.vb

    context.Response.ClearContent()
    context.Response.ClearHeaders()
    context.Response.Buffer = True
    context.Response.Charset = ""
    context.Response.ContentType = GetContentType(format)
    context.Response.AddHeader("content-disposition:","attachment;filename="rep.jpeg")
    context.Response.AppendHeader("content-length", data.Length.ToString())
    context.Response.BinaryWrite(data)
    context.Response.Flush()
    context.Response.End()


--aspx page

    X <--displays an 'x' on img tag on page


i am missing something. can't see what it is.

thanks,