Author: codetoad | Posted on: 8/20/2008 5:43:10 AM | Views : 514

I use the following code to download a ringtone to a mobile phone ( Nokia 6300 ) . the problem is that the ringtone dosent get saved to the phone with the original name of the file which i have saved in the string variable "itemname", rather the file get saved with the name of the aspx page with extension mp3 i.e mp3tone.mp3... where does the problem lies , what could be a possible solution?

Response.Clear(); Response.ContentType = "audio/mpeg";

 Response.AddHeader("Content-Disposition", "attachment; filename=\"" + itemname "\"");

Response.BinaryWrite(System.IO.File.ReadAllBytes(@"C:\Domains\dest\wwwroot\mp3\" + itemname + ""));

Response.Flush();

Response.End();

 

PLease help , i got really stucked with this, i found no hint about this kind of problem.
...

Go to the complete details ...