473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

problem in file download to the client

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
Nov 19 '05 #1
1 1290
It probably has to do with the MIME setting on that server. Contact your
technical support
"alocin" <al****@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
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

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pedro Fonseca | last post by:
Greetings! In my PHP website I'm trying to raise a File Download dialog directly in a WindowsCE IE client with the following code: header( "Content-Type: application/octet-stream\n" );...
3
by: Skwish | last post by:
Hi, I would like to download all the files from a folder (of various types i.e. ..txt, .dll, .dat, etc.). I tried Dim MyDir As IO.Directory Dim path As String = Me.MapPath(".") & "\Data" Dim...
1
by: Daniel Cardoso | last post by:
I don't know what else to try - In my asp.net app, when the file name has Windows-1252 characters (like ã and ç), these characters appear, each one, as two strange characters in the file name label...
1
by: Bernard Matthews | last post by:
I'm using the following code to stream a CSV file download to the client browser - HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.ClearContent();...
3
by: Cathryn Johns | last post by:
Hi I'm trying to download some content as a file to the client. My code behind looks like this: private void DownloadFile(byte contents) { Response.ContentType = "text/csv";...
19
by: Andrew Chalk | last post by:
How do I do file download from an ASP.NET v1.x page? Specifically if I have a link e.g. "Download" in a datagrid what code will cause the file download dialog to appear to the user? Many...
5
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
7
by: mistral | last post by:
I use htaccess to protect directory and granting access to download file only for the authorized users. Just want implement simple PHP file download counter for single file. I need track the number...
0
by: sz20067 | last post by:
Hi i want to develop a web page that contains unicode for non-english language. Now the problem is that either i use .eot or pfr for fonts ... im still facing problems in this scenario , so i want to...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.