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

how to send binary files and protect their file names

I have many office files saved in sql server. The system sends them by one
web page: RequestFile.asp. So every file has the same name requestFile.asp.

How can i change requested URL on the server from
www.domain.com/requestFile.asp to www.domain.com/someFileName.doc????

I am able to rise "Save or open downloaded file" dialog, but this does not
help me at all.

Thank you very much.

Tom
Nov 26 '05 #1
4 1825
check out www.aspprotect.com
or search www.aspin.com
"Tomas PAJER" <To********@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
I have many office files saved in sql server. The system sends them by one
web page: RequestFile.asp. So every file has the same name
requestFile.asp.

How can i change requested URL on the server from
www.domain.com/requestFile.asp to www.domain.com/someFileName.doc????

I am able to rise "Save or open downloaded file" dialog, but this does
not
help me at all.

Thank you very much.

Tom

Nov 27 '05 #2
Not sure if this is a problem with the client side name of the file or if
you want the user to think that he loads directly from an URL...

Do you use http://support.microsoft.com/kb/260519/en-us ? (note the filename
part that allows to tell which name you want client side)

Else you could handle the 404 error and use Server.Transfer to go to the
RequestFile.asp with the proper filename as a parameter. Client side the
user will think he's loading directly from an URL...

--

"Tomas PAJER" <To********@discussions.microsoft.com> a écrit dans le message
de news:A6**********************************@microsof t.com...
I have many office files saved in sql server. The system sends them by one
web page: RequestFile.asp. So every file has the same name requestFile.asp.
How can i change requested URL on the server from
www.domain.com/requestFile.asp to www.domain.com/someFileName.doc????

I am able to rise "Save or open downloaded file" dialog, but this does not help me at all.

Thank you very much.

Tom

Nov 28 '05 #3
Hello Patrice.

I have read that kb article, but it cannot be used. Yes, I can set the name
of the file in Response.AddHeader "content-disposition","attachment;
filename=fname.ext" header, but if the user wants to open the file, it is not
possible. There is no file In temporary internet files folder with that name.
It is still saved with the name derived from the url.

I think that the only option is to map the 404 error page to
requestFile.aspx and use Server.Transfer method. Thank you very much for that
good idea.

Tom


"Patrice" wrote:
Not sure if this is a problem with the client side name of the file or if
you want the user to think that he loads directly from an URL...

Do you use http://support.microsoft.com/kb/260519/en-us ? (note the filename
part that allows to tell which name you want client side)

Else you could handle the 404 error and use Server.Transfer to go to the
RequestFile.asp with the proper filename as a parameter. Client side the
user will think he's loading directly from an URL...

--

"Tomas PAJER" <To********@discussions.microsoft.com> a écrit dans le message
de news:A6**********************************@microsof t.com...
I have many office files saved in sql server. The system sends them by one
web page: RequestFile.asp. So every file has the same name

requestFile.asp.

How can i change requested URL on the server from
www.domain.com/requestFile.asp to www.domain.com/someFileName.doc????

I am able to rise "Save or open downloaded file" dialog, but this does

not
help me at all.

Thank you very much.

Tom


Nov 28 '05 #4
Which browser ? This is not he behavior I have with IE6. It may append a
suffix such as [1] but it uses the filename correctly. Try perhaps to
enclose the name within ". Should work...

--
Patrice

"Tomas PAJER" <To********@discussions.microsoft.com> a écrit dans le message
de news:60**********************************@microsof t.com...
Hello Patrice.

I have read that kb article, but it cannot be used. Yes, I can set the name of the file in Response.AddHeader "content-disposition","attachment;
filename=fname.ext" header, but if the user wants to open the file, it is not possible. There is no file In temporary internet files folder with that name. It is still saved with the name derived from the url.

I think that the only option is to map the 404 error page to
requestFile.aspx and use Server.Transfer method. Thank you very much for that good idea.

Tom


"Patrice" wrote:
Not sure if this is a problem with the client side name of the file or if you want the user to think that he loads directly from an URL...

Do you use http://support.microsoft.com/kb/260519/en-us ? (note the filename part that allows to tell which name you want client side)

Else you could handle the 404 error and use Server.Transfer to go to the
RequestFile.asp with the proper filename as a parameter. Client side the
user will think he's loading directly from an URL...

--

"Tomas PAJER" <To********@discussions.microsoft.com> a écrit dans le message de news:A6**********************************@microsof t.com...
I have many office files saved in sql server. The system sends them by one web page: RequestFile.asp. So every file has the same name

requestFile.asp.

How can i change requested URL on the server from
www.domain.com/requestFile.asp to www.domain.com/someFileName.doc????

I am able to rise "Save or open downloaded file" dialog, but this
does not
help me at all.

Thank you very much.

Tom


Nov 28 '05 #5

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

Similar topics

0
by: chris | last post by:
I'm writing a small app to help me learn more about cryptography. All it does is encrypt all of the files in directory A, and put the encrypted versions of the files in directory B. It then...
0
by: Jean Hagen | last post by:
I'm trying to write a script to weekly remove MySQL logs, the general, error and binary log files. Following the MySQL documentation, I've written a script that moves all current log files, then...
103
by: Steven T. Hatton | last post by:
§27.4.2.1.4 Type ios_base::openmode Says this about the std::ios::binary openmode flag: *binary*: perform input and output in binary mode (as opposed to text mode) And that is basically _all_ it...
3
by: SpIcH | last post by:
Hi All, This is all about protecting my data in Executable file. I have developed a program in Visual Basic .NET 2002. I have many questions in mind... please help me to complete my project. ...
18
by: UJ | last post by:
Folks, We provide custom content for our customers. Currently we put the files on our server and people have a program we provide that will download the files. These files are usually SWF, HTML or...
21
by: Rohith | last post by:
I need to split a large binary file into two binary files. I have a delimiter (say NewLine) in the binaryfile. I need to split the binary file such that the first file is upto the NewLine and the...
23
by: ShaneO | last post by:
Hello, I wish to extract embedded string data from a file using a Binary Read method. The following code sample is used in VB.NET and similar code is used in VB6 - (Assume variable...
13
by: swetha | last post by:
HI Every1, I have a problem in reading a binary file. Actually i want a C program which reads in the data from a file which is in binary format and i want to update values in it. The file...
22
by: xiao | last post by:
Can I fullfill this task? Using fred and fwrite?
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.