J
James Cooke
I succesfull yam able to download binary data by calling a page called
BinaryData.aspx. BinaryData.aspx gets the binary data from the database,
and displays it as such:
Response.Buffer = True
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = binaryFieldType
Response.BinaryWrite(binaryField)
Response.End()
This then produces a download called
BinaryData.ZIP, or
BinaryData.MDB or
BinaryData.PDF
with the file extension differing depending on what the ContentType is.
My question: I want to be able to change the *root* name of the download to
something else - for example
MyData.ZIP, or
Customers.MDB or
Document1.PDF
How? Am I using the wrong approach in extracting this binary data, and if
so, where do I start looking?
thanks in advance
BinaryData.aspx. BinaryData.aspx gets the binary data from the database,
and displays it as such:
Response.Buffer = True
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = binaryFieldType
Response.BinaryWrite(binaryField)
Response.End()
This then produces a download called
BinaryData.ZIP, or
BinaryData.MDB or
BinaryData.PDF
with the file extension differing depending on what the ContentType is.
My question: I want to be able to change the *root* name of the download to
something else - for example
MyData.ZIP, or
Customers.MDB or
Document1.PDF
How? Am I using the wrong approach in extracting this binary data, and if
so, where do I start looking?
thanks in advance