473,471 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to setup the displayed file to be undownloadable?

Foe example, I have a file (image) display application (maybe in client side)
and my server application can show the path/name of the file. When I click
the file in the IE, I am asked for either "save" or "open" in a popup window.
How can I set some property in server side such that the "save" is disabled,
i.e., the client can only open the file to view but not save to his local
machine.

Thanks

David
Nov 19 '05 #1
2 1088
You can't...
cause the user can use the PRINT SCREEN function, in your "view mode",
so why bother for the "Save Image As..."

the photo companys use a watermark to avoid copping, this wattermark is
visible in all images and will be remove if you pay for it, so, my opinion
is: Forget about it or use JavaScript Client Side to block the right mouse
click, like this:
<script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// ba*******@aol.com
// Don't delete this header!

var message="Sorry, that function is disabled.\n\nContents & Graphics
Copyright ©your name\nOur work is not Public Domain, and should NOT be taken
from this site."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>
"david" <da***@discussions.microsoft.com> escreveu na mensagem
news:A4**********************************@microsof t.com...
Foe example, I have a file (image) display application (maybe in client
side)
and my server application can show the path/name of the file. When I click
the file in the IE, I am asked for either "save" or "open" in a popup
window.
How can I set some property in server side such that the "save" is
disabled,
i.e., the client can only open the file to view but not save to his local
machine.

Thanks

David

Nov 19 '05 #2
Thank you very much.

David

"Bruno Alexandre" wrote:
You can't...
cause the user can use the PRINT SCREEN function, in your "view mode",
so why bother for the "Save Image As..."

the photo companys use a watermark to avoid copping, this wattermark is
visible in all images and will be remove if you pay for it, so, my opinion
is: Forget about it or use JavaScript Client Side to block the right mouse
click, like this:
<script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// ba*******@aol.com
// Don't delete this header!

var message="Sorry, that function is disabled.\n\nContents & Graphics
Copyright ©your name\nOur work is not Public Domain, and should NOT be taken
from this site."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>
"david" <da***@discussions.microsoft.com> escreveu na mensagem
news:A4**********************************@microsof t.com...
Foe example, I have a file (image) display application (maybe in client
side)
and my server application can show the path/name of the file. When I click
the file in the IE, I am asked for either "save" or "open" in a popup
window.
How can I set some property in server side such that the "save" is
disabled,
i.e., the client can only open the file to view but not save to his local
machine.

Thanks

David


Nov 19 '05 #3

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

Similar topics

1
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
0
by: Chris Dunaway | last post by:
I have created a Windows Service project and have added a Setup project to the solution. My Windows Service executable has a built in installer so that I can install the service by calling the...
3
by: WT | last post by:
Hello, Using english version of vs 2005 to develop, my setup dialogs are all displayed in english, is there some way to have it displayed according the current culture using resources as we do for...
0
by: Gancy | last post by:
Hi In my setup project I need a custom dialog box containing a drop down list box. Since this is not avaialble from standard user interface dialog boxes that visual studio supplies, I am using...
0
by: mstoler | last post by:
Hello, I created a setup and deployment project in VS2005 and vb. When I look at my project in the control panel, add/remove programs a generic icon is displayed. How can I specify my...
0
by: Eugene | last post by:
With VS2003 I could add any file (right-click in File System Editor, select "Add File", browse and select desired file). When I take these steps in VS2005 selected file does not appear in File...
0
by: =?Utf-8?B?TWljaGVs?= | last post by:
Hello, When creating a setup project for my VB.NET application, the setup installs my program in c:\program files\default company name\Program name. I can rename then name of the map "Default...
0
by: alanedward1981 | last post by:
Hi All, I am getting a random error from an application that is out there in the production environment. Out of 340 machines, this has occured at random to about 7 people so fay in 8 days. I...
2
by: Norman Diamond | last post by:
My C# code is I18N'ed by appropriately naming and editing .resx files. At execution time, it works. My C++ code is somewhat I18N'ed. When I put UI code in C++ I use .rc files. When I link to a...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.