473,378 Members | 1,427 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,378 software developers and data experts.

Writing Binary files to clients over SSL

In reference to KB article 306654 (which works perfectly otherwise), why does
this method fail if the site is using SSL??? I have a series of content
handlers that write non-ASP.NET files to the browser (dynamic reports, etc.),
but as soon as SSL is enabled on the site, this method no longer works (no
data received by the browser) - I get the 'Page cannot be displayed' error.

Any help appreciated.

TIA,
Mike
Nov 20 '05 #1
5 1133
MichaelY wrote:
In reference to KB article 306654 (which works perfectly otherwise),
why does this method fail if the site is using SSL??? I have a
series of content handlers that write non-ASP.NET files to the
browser (dynamic reports, etc.), but as soon as SSL is enabled on the
site, this method no longer works (no data received by the browser) -
I get the 'Page cannot be displayed' error.


Don't underestimate the processing power requirements for SSL. Your
file may sit idle in the web server's output buffer...

Do you use a chunk based approach like KB 306654 suggests, or do you
write the file en bloc?

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 20 '05 #2
I tried both...my test file is a 85 KB PDF file.

Mike

"Joerg Jooss" wrote:
MichaelY wrote:
In reference to KB article 306654 (which works perfectly otherwise),
why does this method fail if the site is using SSL??? I have a
series of content handlers that write non-ASP.NET files to the
browser (dynamic reports, etc.), but as soon as SSL is enabled on the
site, this method no longer works (no data received by the browser) -
I get the 'Page cannot be displayed' error.


Don't underestimate the processing power requirements for SSL. Your
file may sit idle in the web server's output buffer...

Do you use a chunk based approach like KB 306654 suggests, or do you
write the file en bloc?

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de

Nov 20 '05 #3
MichaelY wrote:
I tried both...my test file is a 85 KB PDF file.


Ouch! Could be a trivial coding error, like not flushing the response
stream?

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 20 '05 #4
LoL...that was my first thought as well!!! But, yes, I did the "5:00 Friday"
check at least 30 times....but to no avail. As soon as SSL is turned off, it
works great....

**sigh**

Mike

"Joerg Jooss" wrote:
MichaelY wrote:
I tried both...my test file is a 85 KB PDF file.


Ouch! Could be a trivial coding error, like not flushing the response
stream?

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de

Nov 20 '05 #5
MichaelY wrote:
LoL...that was my first thought as well!!! But, yes, I did the "5:00
Friday" check at least 30 times....but to no avail. As soon as SSL
is turned off, it works great....


Hm... can you post your code?

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 20 '05 #6

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

Similar topics

6
by: Sebastian Kemi | last post by:
How should a write a class to a file? Would this example work: object *myobject = 0; tfile.write(reinterpret_cast<char *>(myobject), sizeof(*object)); / sebek
4
by: Igor Shulgin | last post by:
Hi! What is standard and direct way (within Oracle 9.2 stored procedures) for writing binary data from Oracle to external file on disk? We have tried to use UTL_FILE package, but it operates on...
6
by: someone | last post by:
Suppose that I have a class in an assembly that is delivered to the user, what can I do to change the class so that it doesn't break the binary compatibility? That is, user application can run...
4
by: Simon | last post by:
Hi all, I have a process, where I take a dataset from an SQL call, and need to write an XML file from that dataset. The data set can contain 10's of tables, each with 100's of rows, and I have...
5
by: rob | last post by:
hey every1, I've got alot of data to write out to file and it's all just 1's and 0's. It's all stored in 2 dimensional arrays of width 32 and varying height. At the moment it's all just...
2
by: E.T. Grey | last post by:
I am persisting nested (tree) structures in C to binary file. I want to be able to read/write this data using PHP - is this possible?. That is to say, can PHP read/write C structures to file so...
3
by: nicolasg | last post by:
Hi, I'm trying to open a file (any file) in binary mode and save it inside a new text file. After that I want to read the source from the text file and save it back to the disk with its...
6
by: arne.muller | last post by:
Hello, I've come across some problems reading strucutres from binary files. Basically I've some strutures typedef struct { int i; double x; int n; double *mz;
11
by: itdevries | last post by:
Hi, I'm trying to convert some char data I read from a binary file (using ifstream) to a float type. I've managed to convert the int types but now I need to do the float types as well but it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.