Ethic Solutions Free Webmaster Tools
     
Webmaster Discussion Forum -  Revenue Sharing Forum  webmaster talk related topic
Revenue Sharing Blog - Create your own
Create your own blog FREE and get 80% Revenue directly from google
Earn more revenue on our site, it's free!

» Free SEO Tools
» Check Page Rank
» Check Page Rank multi datacenter
» Check Fake Page Rank
» Alexa Traffic Rank
» Bulk Page rank Check
» Link Popularity
» Check domain Instantly
» Short url
» MD5 Encrypt
» Meta Tags Extractor
» Surf using Proxy
» Keyword Density Analyzer
» Keyword Analyzer
» Welcome to WMH
Registration at WebmastersHome is completely FREE and takes only a few seconds. By registering you'll gain:
  • Full Posting Privileges.
  • Access to Private Messaging.
Register now
Partner

Text Link Ads
Web Hosting
Flash Tutorials
PHP Scripts
Web Hosting providers
Offshore Software Outsourcing
Web Directory
Software Directory
Your Text Link
Earn More
Simply Add a Post and view ad network advertisement on this post.


Go Back   Webmaster Discussion Forum - Revenue Sharing Forum webmaster talk related topic > Design and Programming Talk > Client & Server Side Scripting > JavaScript


file downloading.

JavaScript


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-2007, 03:29 PM
karunakar karunakar is offline
Junior Member
 
Join Date: Mar 2007
Posts: 1
karunakar is on a distinguished road
iTrader: (0)
Exclamation file downloading.

Hi All,

I uploaded a file as doc file and stored into the data base as a blob of mysql data base.

I am writing code for down loading a files. For this i am seting the response headers as follows...
response.setContentType("application/msword");
response.setHeader("Content-Disposition", "attachment; filename=\""
+ fileName + ".doc\"");
response.setHeader("cache-control", "no-cache");
response.setDateHeader("max-age", 0);
response.setHeader("cache-control", "no-cache");
response.setHeader("Transfer-Encoding", "deflate");
response.setHeader("Content-Encoding", "en-us");
response.setContentLength(pasteResume.length());
response.setHeader("Connection", "keep-alive");
response.setHeader("Expires", "0");
response.setHeader("Vary", "Accept-Language,Accept-Encoding,User-Agent");
response.setHeader("Pragma", "no-cache");
response.setHeader("Content-Type","MIME"); //"text/html;;charset=%s % charset"
request.setCharacterEncoding("UTF-8");
response.setHeader("Content-Language","lang");

PROBLEMS IS::

When ever i am clicking the download link to download this file ,It start opening, but before it opening the file a dialog bix appears as follows..in linux and windows also
properties
Charcter Set : Unicode (UTF-
Default Fonts : Nimbus Roman No9 L
Language : English(USA)
Paragraph Break : CR&LF CK LF

Now if i click OK it opens the file correctly . I want to set it as default , So that this dialog box should not apper.
If any one knows why this box is appearing please tell me soon.

Thanks & Regards
karunakr reddy . kona
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Revenue Sharing Ads ( Read More ):

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:41 PM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0