problem in file download to the client

G

Guest

in my aspx page's page_load i got:

Dim imageData() As Byte=allegato
Response.ClearContent()
Response.ClearHeaders()
Response.AppendHeader("Content-Length", imageData.Length.ToString)
Response.ContentType = "application/octet-stream"
Response.AddHeader("content-disposition", "attachment;
filename=goofy")
Response.BinaryWrite(imageData)
Response.End()
End Sub

it should open the Open/Save popup on the browser for ImageData file download.

it works fine on my localhost and on my hosting server too.
but it do not works on another hosting server.
the popup is not shown, i see 'download completed' in the status bar
and the page remain totally empty.
what i'm wrong?
do you have anything to suggest?
thanks very much
niko
 
T

Tampa.NET Koder

It probably has to do with the MIME setting on that server. Contact your
technical support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,034
Messages
2,570,356
Members
47,002
Latest member
RobertoLip

Latest Threads

Top