ASP Forum
Mobile download via ASP streaming script problem
alex2016 | Posted 3:25am 6. November 2007 Server Time |

Hi all,

At this moment I'm working some download link for WAP using ASP.
User will be able to download several items such as wallpaper, animated gif, and mp3, etc.
The download link is something like : http://www.haneng.com/download.asp?id=xxx.

I got some ASP script running in this download.asp which mainly for streaming file, the script is as following :

Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Charset = "UTF-8"
objStream.Type = 1 'Binary
objStream.Open
objStream.LoadFromFile "c:\my pictures\haneng.gif"

Response.Clear
Response.AddHeader "Content-Disposition", "attachment;filename=" & "haneng.gif"
Response.ContentType = "image/gif"
Response.BinaryWrite (objStream.Read)
Response.Flush

objStream.Close
Set objStream = Nothing


The problem are:
1) I can not redirect users to go to thanks.asp after downloading the content, or fails.asp if they fails downloading
2) works fine in IE browser, but in mobile handset, instead of saving the file as "haneng.gif" they save it as "download.gif" T_T

some friend of mine told me about
http://www.haneng.com/default.php/abc-def/haneng.gif
method to ensure the file is saved as haneng.gif, but it was in php and I have no idea about this


Please help. Thanks in advance.


Reply to Post Mobile download via ASP streaming script problem



Back to Forum Page