Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Response.TransmitFile Response.WriteFile SSL HTTPS

Reply
Thread Tools

Response.TransmitFile Response.WriteFile SSL HTTPS

 
 
Ryan Pedersen
Guest
Posts: n/a
 
      07-10-2005
I have been trying to figure out how to transmit a file back to a user using the response.transmitfile or response.writefile method and just not having much success.

I have a dell server running windows 2003 web server edition fully patched. The files are physically on the same web server. The entire site is HTTPS... it has to be because it is a financial site.

With SSL on I cannot get TransmitFile or WriteFile to work (all files are less than 1 MB). The save box comes up just fine but when I click save... nothing happens.

If I turn off SSL TransmitFile doesn't work. But I can use WriteFile in this configuration and it does work.

Please... any suggestions that you have I am open to all of them.

Best regards,
Ryan





--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

 
Reply With Quote
 
 
 
 
Daniel Fisher\(lennybacon\)
Guest
Posts: n/a
 
      07-12-2005
You should not use the built in method for such big downloads. Use

Context.Response.Buffer=false;
FileStream inStr = null;
byte[] buffer = new byte[1024];
long byteCount;

inStr = File.OpenRead(filePath);
while ((byteCount = inStr.Read(buffer, 0, buffer.Length)) > 0)
{
if(Context.Response.IsClientConnected)
{
Context.Response.OutputStream.Write(buffer, 0, buffer.Length);
Context.Response.Flush();
}
}

instead and sent the file bitwise.

--
Daniel Fisher(lennybacon)


"Ryan Pedersen" <(E-Mail Removed)> wrote in message
news:5E9Ae.42879$(E-Mail Removed)...
>I have been trying to figure out how to transmit a file back to a user
>using the response.transmitfile or response.writefile method and just not
>having much success.
>
> I have a dell server running windows 2003 web server edition fully
> patched. The files are physically on the same web server. The entire site
> is HTTPS... it has to be because it is a financial site.
>
> With SSL on I cannot get TransmitFile or WriteFile to work (all files are
> less than 1 MB). The save box comes up just fine but when I click save...
> nothing happens.
>
> If I turn off SSL TransmitFile doesn't work. But I can use WriteFile in
> this configuration and it does work.
>
> Please... any suggestions that you have I am open to all of them.
>
> Best regards,
> Ryan
>
>
>
>
>
> --------------= Posted using GrabIt =----------------
> ------= Binary Usenet downloading made easy =---------
> -= Get GrabIt for free from http://www.shemes.com/ =-
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
server side redirect https => https NOT working Axel ASP General 8 04-27-2009 02:02 AM
https authentication & storing https page in string Naveen Dhanuka Ruby 1 09-19-2007 02:05 PM
open-uri and HTTPS, or net/https with a redirect jotto Ruby 4 10-02-2006 07:26 AM
how Avoid SSL problem in IIS 6 ? (http inside https site) =?Utf-8?B?ZHl2aW01Nw==?= MCSE 9 12-20-2005 04:56 AM
TreeView over https / ssl Curia Damiano ASP .Net 0 02-12-2004 10:38 AM



Advertisments