Blocking the ability to download a photo from a web page using iWeb

You guys have been so helpful about helping me make video files and music tracks unavailable for downloading from my site by altering the javascript code on my iDisc. Now I have another problem.
The photo/pictures placeholders in iWeb permit me to place photos on my web pages. Is there a way to alter the code so that the option to drag-copy or download the picture from my site can be disabled?
Thanks for your help!
Jim

Here are some variations that make messing with strings easier.
$LocalPage ='\\server\share\sam1.html'
# build URI
$template= 'https://server/reports/116/output/?start-year={0}&start-month={1}&start-day={2}&days=1&company-code=1'
$d=[datetime]::Today.AddDays(-1)
$uri=$template -f ($d.Year-2000),$d.Month,$d.Day
(Invoke-WebRequest -Uri $uri).Content | Out-File -FilePath $LocalPage -Force
& $LocalPage
¯\_(ツ)_/¯
 Nice!
Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

Similar Messages

  • Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed

    We are planning to Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed. I have tried using the AIR appliaction and it worked, But our requirement is NO INSTALL to the user machine for the silent printing. It is just from web page and silent printing to the default printer to the desktop/Laptop. Can anyone share your thoughts and experience with us. It will be very helpful..
    For AIR : I tried the thread Re: AIR and PDF showing/silent printing

    Hey CodeMonkey & Ross,
    Did you either of you ever find a solution? I'm stuck too, it seems I can get remote printing on all these PDFs to work but it just prints a blank page since I've been using Javascript in the browser, not Adobe's (they are Engineering drawings that I do not have permission to edit so I can't just insert code into them but I need to make work instructions). I've been scouring the internet for hours now, it seems that this thread is the only relevant/useful one at this point. No one else was trying to achieve this for similar reasons to mine.
    Thanks guys,
    Lox

  • Controlling shockwave content (dcr) from a web page using javascript

    Hi,
    Is it possible to control shockwave content (dcr; object="application/x-director") from a web page using javascript?
    I believe this is possible using 'FSCommand' in Flash...
    I'd like to use HTML to do something like:
    - html_object[1].go(10);
    to send playback to frame 10.
    Thanks.
    Mark

    Sean,
    Thanks - this is exactly what I was looking for.
    'Shockingly' difficult ( pun intended :-)
    Someone really put in some effort on this.
    Very creative solution, putting a flash ( swf ) component in a director project and communicating indirectly through the flash element.
    Apparently, Javascript can communicate with the SWF file & the SWF file can communicate with the DCR file, but it is not possible to have Javascript communicate directly with the DCR. Too bad.
    After looking over this example I think I'll rethink my project.
    Thanks again.
    Mark

  • Save photos from a web page

    Hello everybody:
    I'd like to save a photograph taken from a web page as a jpg file. I have written the following application, but It doesn�t work.
    public static void main(String[] args) {
    try {
    URL url = new URL ("http://ia.imdb.com/media/imdb/01/I/68/65/38m.jpg");
    URLConnection connection = url.openConnection();
    DataInputStream inStream = new DataInputStream(connection.getInputStream());
    String inputLine;
    File outFile = new File("fotoTomHanks.jpg");
    PrintWriter outStream = new PrintWriter(new FileWriter(outFile));
    while ((inputLine=inStream.readLine())!=null) {
         outStream.println(inputLine);
    inStream.close();
    outStream.close();
    } catch (MalformedURLException me) {
    System.err.println("MalformedURLException: " + me);
    } catch (IOException ioe) {
    System.err.println("IOException: " + ioe);
    I think I'm not using the correct streams or writers because I'm doing the same i would do if I'd like to save a string in a txt file, but I don�t know how I should do it.
    Thank you in antitipation for your help.

    Repeat after me:
    Readers/writers are for text data.
    Streams are for binnary data.
    JPEGs don't have text lines.To further expound:
    *A low-level stream receives and writes bytes.
    *A high-level filter stream typically receives and writes primitive types such as doubles, ints, or UTF.
    *Readers and writers can be thought of as specialized filter streams for reading and writing units of Unicode characters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problems in Downloading a file from a web site using HttpClient

    Hi,
    My requirement is to download a file from a website using a java program. I have written a program using HttpClient API but I am unable to do so. Reality is that I don't know how to proceed with the HttpClient API to get the file downloaded. Same file can also be downloaded manually by login to that website, below mentioned steps are to be followed to download the file manually.
    1. Login to the website using Login/Password (I have valid login/password)
    2. Two options (links) are there (a) Report (b) Search [I am chosing report option]
    3. Newly opened window shows two tabs (a) Today (b) From & To [I am selection Today tab]
    4. Every tab has two radio button (a) File (b) Destination [Destination is selected by me]
    5. When Search button is pressed. A link gets created when that link is clicked file download popup is opened which allows facility to open/save the file.
    All these 5 step are to be followed in a java program to download the file. Please help in doing the same.

    // first URL which is used to open the website, this will have two text fields userName and password
    String finalURL = "http://www.xyz.in/mstatus/index.php";
    SMSGatewayComponentImpl obj = new SMSGatewayComponentImpl();
    obj.sendMessage(finalURL);
    public void sendMessage(String finalURL) {
    String ipAddrs = "a.b.c.d";
    int port = 8080;
    boolean flag = false;
    try {
    // Create an instance of HttpClient.
    HttpClient client = new HttpClient();
    HostConfiguration hostConfig = new HostConfiguration();
    hostConfig.setProxy(ipAddrs,port);
    client.setHostConfiguration(hostConfig);
    // Create a method instance.
    String cookieName=null;
    String cookieValue=null;
    // Here URL for the login page is passed and passing the user/password
    PostMethod method = new PostMethod(finalURL);
    method.setRequestHeader("userid","userName");
    method.setRequestHeader("passwd","pwd");
    // Execute the method.
    int statusCode = client.executeMethod(method);
    Cookie[] cookies = client.getState().getCookies();
    for (int i = 0; i < cookies.length; i++) {
    Cookie cookie = cookies;
    cookieName = cookie.getName();
    cookieValue = cookie.getValue();
    System.err.println(
    "Cookie: " + cookie.getName() +
    ", Value: " + cookie.getValue() +
    ", IsPersistent?: " + cookie.isPersistent() +
    ", Expiry Date: " + cookie.getExpiryDate() +
    ", Comment: " + cookie.getComment());
    NameValuePair[] respParameters = method.getResponseHeaders();
    String cookie = "";
    for(NameValuePair o : respParameters){
         System.out.println("Name : "+o.getName());
         System.out.println("Value : "+o.getValue());
         if("Set-Cookie".equalsIgnoreCase(o.getName()))
              cookie = o.getValue();
    NameValuePair[] footParameters = method.getResponseFooters();
    System.out.println("****************** Footer Values *******************");
    for(NameValuePair o1 : footParameters){
    System.out.println("Name : "+o1.getName());
    System.out.println("Value : "+o1.getValue());
    // This is jthe URL which comes when login/passowrd is entered and Login button is pressed.
    // I am trying to get the cookie from the first URL and pass this cookie for the second URL so that the session can be maintained
    // Here I may be wron..don't know is this the right way to download the file like this.....????
    finalURL = "http://www.xyz.in/mstatus/mainmenugrsms.php";
         method = new PostMethod(finalURL);
         method.setRequestHeader(cookieName,cookieValue);
         method.setRequestHeader("userid","userName");
         method.setRequestHeader("passwd","pwd");
         method.setRequestHeader("Set-Cookie",cookie);
         statusCode = client.executeMethod(method);
         respParameters = method.getResponseHeaders();
    for(NameValuePair o : respParameters){
    System.out.println("Name : "+o.getName());
         System.out.println("Value : "+o.getValue());
    // and this is the final URL which i got when that final link which enabled file download from the website have been copied as a shortcut and
    // pasted in a notepad. I was thinking that this will return the file as an input stream. but its not happening.
         finalURL = "http://www.xyz.in/mstatus/dlr_date.php#";
         method = new PostMethod(finalURL);
         method.setRequestHeader("Set-Cookie",cookie);
         method.setRequestHeader("userid","userName");
    // userid and passwd field are obtained when login/password page contents are seen using view source of that html
         method.setRequestHeader("type","1");
         // trying to set the cookie so that session can be maintained
    method.setRequestHeader(cookieName,cookieValue);
         method.setRequestHeader("passwd","pwd");
         statusCode = client.executeMethod(method);
         ObjectInputStream objRetInpuStream = new ObjectInputStream(method.getResponseBodyAsStream());
         System.out.println("objRetInpuStream : "+objRetInpuStream);
         if(objRetInpuStream!=null)
         System.out.println("objRetInpuStream available bytes : "+objRetInpuStream.available());
         String returnFile=(String)objRetInpuStream.readObject();
         System.out.println("Returned value \n : "+returnFile);
         respParameters = method.getResponseHeaders();
         for(NameValuePair o : respParameters){
         byte[] responseBody = method.getResponseBody();
         System.out.println("Response Body : "+new String(responseBody));
         if (statusCode != HttpStatus.SC_OK) {
              System.out.println("Error: " + method.getStatusLine());
         } else {
              System.out.println(method.getStatusLine());     
         } catch(Exception nfe) {
                   System.out.println("Exception " + nfe);
    Output
    =====
    /home/loguser/batch> sh run.sh SMSGatewayComponentImpl
    Classname : SMSGatewayComponentImpl
    run.sh[4]: test: 0403-004 Specify a parameter with this command.
    final URL : http://www.xyz.in/mstatus/index.php
    client is :org.apache.commons.httpclient.HttpClient@190e190e
    Cookie: PHPSESSID, Value: anqapu83ktgp8hlot06jtbmdf1, IsPersistent?: false, Expiry Date: null, Comment: null
    Name : Date
    Value : Thu, 06 May 2010 09:08:47 GMT
    Name : Server
    Value : Apache/2.2.3 (Red Hat)
    Name : X-Powered-By
    Value : PHP/5.1.6
    Name : Set-Cookie
    Value : PHPSESSID=anqapu83ktgp8hlot06jtbmdf1; path=/
    Name : Expires
    Value : Thu, 19 Nov 1981 08:52:00 GMT
    Name : Cache-Control
    Value : no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Name : Pragma
    Value : no-cache
    Name : Content-Length
    Value : 4792
    Name : Content-Type
    Value : text/html; charset=UTF-8
    Name : X-Cache
    Value : MISS from dcp.pas.abc.in
    Name : X-Cache-Lookup
    Value : MISS from dcp.pas.abc.in:8080
    Name : Via
    Value : 1.0 dcp.pas.abc.in:8080 (squid/2.6.STABLE21)
    Name : Proxy-Connection
    Value : keep-alive
    Cookie Value : PHPSESSID=anqapu83ktgp8hlot06jtbmdf1; path=/
    ****************** Footer Values *******************
    Name-2 : Date
    Value-2: Thu, 06 May 2010 09:08:47 GMT
    Name-2 : Server
    Value-2: Apache/2.2.3 (Red Hat)
    Name-2 : X-Powered-By
    Value-2: PHP/5.1.6
    Name-2 : Expires
    Value-2: Thu, 19 Nov 1981 08:52:00 GMT
    Name-2 : Last-Modified
    Value-2: Thu, 06 May 2010 09:08:47 GMT
    Name-2 : Cache-Control
    Value-2: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Name-2 : Pragma
    Value-2: no-cache
    Name-2 : Location
    Value-2: index.php
    Name-2 : Content-Length
    Value-2: 0
    Name-2 : Content-Type
    Value-2: text/html; charset=UTF-8
    Name-2 : X-Cache
    Value-2: MISS from dcp.pas.abc.in
    Name-2 : X-Cache-Lookup
    Value-2: MISS from dcp.pas.abc.in:8080
    Name-2 : Via
    Value-2: 1.0 dcp.pas.abc.in:8080 (squid/2.6.STABLE21)
    Name-2 : Proxy-Connection
    Value-2: keep-alive
    Cookie Value second time : PHPSESSID=anqapu83ktgp8hlot06jtbmdf1; path=/
    **Exception java.io.EOFException**
    Is my approach to download the file fromthe website ok????? please help me.

  • Can't create a PDF from a Web page using acrobat 8.0

    I am using Acrobat 8.0, + Mac 10.5. When, in Acrobat, the dialog box comes up (File>Create PDF from Web) I first enter the URL, then try to click on "Settings" but nothing happens. Then I get an error message. Is this a known problem?

    If the url is for a secured web site Acrobat can not always get the data as it is not logged into the web site. Some web features can not be converted to the PDF format. Is the web address correct? I would use cut and paste since some web addresses can be quite hard to type in.

  • How to save an image from an web page?

    Hello everybody!
    I have a problem and I hope someone can help me :).
    I am trying to save/download an image from an web page to my computer. So given an URL which contains the image, I want to save this/write this image to disk. Here is my code:
    import java.net.*;
    import java.io.*;
    public class Test{
        public static void main(String[] args) throws Exception{
            Test test = new Test();
            test.readFile();
        public void readFile() throws Exception{
            InputStream inputStream = new URL("http://www.google.se/images/hp1.gif").openStream();
            InputStreamReader reader = new InputStreamReader(inputStream);
            BufferedReader buffReader = new BufferedReader(reader);
            BufferedWriter bw = new BufferedWriter(new FileWriter("savedImage.gif"));
            int x=0;
            while((x = buffReader.read()) != -1) {
                bw.write(x);
            bw.flush();
    }The code saves the image to disk, but unfortunately the image is distorted. Can anyone help me to solve this problem.
    Thanx in advance
    Best regards
    /TheMan

    thanx guys for your quick answers. I got i to work with the following code
    InputStream inputStream = new URL("http://www.google.se/images/hp1.gif").openStream();
            FileOutputStream fos = new FileOutputStream(new File("savedImage.gif"));
            int x=0;
            while((x = inputStream.read()) != -1) {
                fos.write(x);
            fos.flush();Again, thanx guys!

  • Using Adobe Pro X I cannot create a PDF from a web page.

    After a recent upgrade from a previous version of Firefox, I am now unable to create a PDF from a web page using the Adobe Pro toolbar on the web page.  A "save as" box appears and then the conversion process dies.  I can print the page using Adobe Pro as my printer and it works fine. I can create other docs with Adobe Pro.   How do I fix this on my browser?
    Thanks.
    WSC

    Browser Troubleshooting
    "Can't view PDF on the web"
    http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html
    "Display PDF in browser"
    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    Be well...

  • Acrobat Pro XI: Creating a PDF from a Web Page

    When I try to create a PDF from a Web page using Acrobat XI, I get the Error Code "Nothing done" and "Authorization Failure", but it doesn't happen on all webistes. Does anyone know what could be causing this and how to fix it? I'm using the trial version of Acrobat Pro XI on a Mac. Same result with either Firefox or Safari.
    Thanks.

    It's likely a HTTPS site or you have an authenticating proxy server where you are required to enter a password to acess the web page. 

  • I just downloaded Photos and I have lost the ability to easily send photos by email via Outlook.  Any suggestions?

    I just downloaded Photos and I have lost the ability to easily send photos by email via Outlook.  Any suggestions?

    If you use Mac Mail and Microsoft Outlook mail like I do, you could switch from one to the other mail program for send photos.
    iPhoto  >>  Preferences  >>  General tab  >>  E-mail foto's via  >>  select Microsoft Outlook.
    Click a photo  in iPhoto  >>  Share  >>  select E-mail …   >>  Microsoft Outlook will be launch.

  • Lost the ability to download or play songs from iTunes match service ?

    Around 24 hours ago lost the ability to download or play songs from iTunes match service. (iPhone and iPad work) But mac and pc doesn't ? Have downloaded iTunes update and have tryed restaring iTunes

    Hello, Chris3198. 
    Thank you for visiting Apple Support Communities. 
    I see you experiencing issues with iTunes Match on your computers but not on your iOS devices.  I would recommend going through the troubleshooting steps in the articles below.
    iTunes Store: Troubleshooting iTunes Match
    http://support.apple.com/kb/ts4054
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Cheers,
    Jason H. 

  • I downloaded 1100 photos from Kodak Easy Share to Iphoto. Now when I open the photo events in the photo library, a thumbnail screen of all the pictures appears. However, when I click on a thumbnail photo to enlarge it, a lock symbol appears. Help!

    I downloaded 1100 photos from Kodak Easy Share to the Iphoto library. Now when I open

    If Larry's suggestion re iPLM doesn't help there's always the last ditch effort solution:
    Starting over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1. Open the library package like this.
    2. Launch iPhoto with the Option key held down and, when asked, select the option to create a new library.
    3. Drag the subfolders of the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the open iPhoto Library package into the open iPhoto window a few at a time.
    This will create a new library with the same Events (but not necessarily the same Event names) as the original library but will not keep the metadata, albums, books slideshows and other projects.
    Note:  your current library will be left untouched for further attempts at a fix if so desired.

  • I am trying to download my photos from my iphone to my computer, but the computer does not show the device or give me the option to import.

    I am trying to download my photos from my iphone to my computer, but the computer does not show the device or give me the option to import.

    Have you already confirmed that you trust the computer?
    Launch iTunes, then connect your iPhone to the computer.
    When prompted, confirm that you trust the computer.

  • I tried to download some photos from a corrupted CD and now every time I try to open iPhoto the frame pops up but nothing will load.  I just get the spinning color wheel.  Any ideas???

    I tried to download some photos from a corrupted CD and now every time I try to open iPhoto the frame pops up but nothing will load.  I just get the spinning color wheel.  Any ideas???

    What version of iPhoto? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • I recently updated my wifes iphone to v5 so that it could hotpoint with our new ipad. I downloaded her photos from the iphone to our imac but they were deleted from the iphone in the update. Can you import photos onto the iphone from the imac?

    I recently updated my wifes iphone to v5 so that it could hotpoint with our new ipad. I downloaded her photos from the iphone to our imac but they were deleted from the iphone in the update. Can you import photos onto the iphone from the imac?

    Are you both using different Apple ID on iTunes?
    Here's some links to get you up to speed about Home Sharing
    Understanding Home Sharing
    http://support.apple.com/kb/HT3819
    Setting up Home Sharing
    http://support.apple.com/kb/HT4620
    Message was edited by: ckuan

Maybe you are looking for

  • After update to 11.0.3, radio no longer works.

    After installing iTunes update 11.0.3, radio no longer works. This is the error "An error occurred while contacting the radio tuning service. Check your Internet connection, or try again later" when you flip the triangle to expand genres (ie, "Jazz")

  • Blue Q's with question marks

    After updating to quicktime 7.0.4 all my webpages that had quicktime images only displayed a Q with a question mark on top of them. I uninstalled 7.0.4 and went back to 7.0.1 and the problem did not go away. Updated to 7.0.3 and still have the same p

  • Business Rules (SOA 11g)

    We are facing one issue while implementing an use-case in Business Rules (SOA 11g). In brief it is defined as below: There is an aggregate function used to calculate the sum of all nodes and based on the result, we need to send notifications. In the

  • TS4001 Transferring Google Chrome bookmarks to iOS using iCloud

    I want to transfer my Google Chrome bookmarks to iOS using iCloud. How do I do it? My iCloud control panel does not have an 'options' button for bookmarks and it says 'Bookmarks with Internet Explorer'.

  • How to turn off marketing texts about Smart talk?

    I seem to constantly get texts from BT about using my mobile for using smarttalk to make calls It says to text 61998 with Stop, to make them stop, but unfortunatly, the texts never go through, so the texts keep on coming. Anyone know of a way to stop