Import Images as URL

Hi,
We are trying to load images from web server as external links. When loading the image we have an option to store the image in the repository or Link to original file only. Is there a way to use URL instead of Windows file location.
Thanks
vara

Thanks Tim,
All our images are on Web Server and It is in DMZ. We can't create network mapping to Web Server. Only alternative I see is duplicating them onto a file server and load them as links. If I load them as Links how do I keep them in Sync. If I change an Image in its original location does MDM recognize the change and reload it automatically or de we have to do this manually.
Thanks
vara vegesine

Similar Messages

  • How to display URL images and URL link (html) from Smartforms?

    Hi Gurus,
    I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
    My code is like this..
    <--- Start Code.
    FORM call_smartforms.
      DATA : lv_subject TYPE so_obj_des,
             lc_true(1) VALUE 'X',
             lw_control_parameters TYPE ssfctrlop,
             lw_output_options TYPE ssfcompop,
             lc_graphics(8) VALUE 'GRAPHICS',
             lw_xsfparam_line TYPE ssfxsfp,
             lc_extract(7) VALUE 'EXTRACT',
             lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
             lc_mygraphics(11) VALUE 'mygraphics/',
             lc_content_id(10) VALUE 'CONTENT-ID',
             lc_enable(6) VALUE 'ENABLE',
             lw_job_output_info TYPE ssfcrescl,
             lw_html_data TYPE trfresult,
             lw_graphics TYPE ssf_xsf_gr,
             lt_graphics TYPE tsf_xsf_gr,
             lv_html_xstr TYPE xstring,
             lw_html_raw LIKE LINE OF lw_html_data-content,
             lv_incode TYPE tcp00-cpcodepage VALUE '4110',
             lv_html_str TYPE string,
             lv_html_len TYPE i,
             lc_utf8(5) VALUE 'utf-8',
             lc_latin1(6) VALUE 'latin1',
             lv_offset TYPE i,
             lv_length TYPE i,
             lv_diff TYPE i,
             lt_soli TYPE soli_tab,
             lw_soli TYPE soli,
             lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
             lv_name TYPE mime_text VALUE 'sapwebform.htm',
             lv_xstr TYPE xstring,
             lw_raw TYPE bapiconten,
             lt_solix TYPE solix_tab,
             lw_solix TYPE solix,
             lv_filename TYPE string,
             lv_content_id TYPE string,
             lv_content_type TYPE w3conttype,
             lv_obj_len TYPE so_obj_len,
             lv_bmp TYPE so_fileext VALUE 'BMP',
             lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
             lc_doc_bcs TYPE REF TO cl_document_bcs,
             lc_bcs TYPE REF TO cl_bcs,
             lc_send_exception TYPE REF TO cx_root,
             lw_adsmtp TYPE lty_adsmtp,
             lv_mail_address TYPE ad_smtpadr,
             lc_recipient TYPE REF TO if_recipient_bcs,
             lc_send_request TYPE REF TO cl_bcs,
             lv_sent_to_all TYPE os_boolean.
      DATA : v_language TYPE sflangu VALUE 'E',
             v_e_devtype TYPE rspoptype.
      v_form_name = 'ZTEST_EMAIL'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = v_form_name
        IMPORTING
          fm_name            = v_namef
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    starting here. ***
    Set title for the output
      lv_subject = 'Smartforms.'.
    Set control parameters to "no dialog"
      lw_control_parameters-no_dialog = lc_true.
    IF lw_service_subject-code = lc_fm1.
    *--- To get output device type
      CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language    = v_language
          i_application = 'SAPDEFAULT'
        IMPORTING
          e_devtype     = v_e_devtype.
      lw_output_options-tdprinter = v_e_devtype.
      lw_control_parameters-getotf = 'X'.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    Set output options
      lw_output_options-xsf        = lc_true.
      lw_output_options-xsfcmode   = lc_true.
      lw_output_options-xsfoutmode = 'A'.
      lw_output_options-xsfoutdev  = space.
      lw_output_options-xsfformat  = lc_true.
      lw_xsfparam_line-name  = lc_graphics.
      lw_xsfparam_line-value = lc_extract.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_graphics_directory.
      lw_xsfparam_line-value = lc_mygraphics.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_content_id.
      lw_xsfparam_line-value = lc_enable.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
    Get the smartform content
      CALL FUNCTION v_namef
        EXPORTING
          control_parameters   = lw_control_parameters
          output_options       = lw_output_options
    *pass other application specific parameters (eg order number, items ).
      IMPORTING
          job_output_info    = lw_job_output_info
      TABLES
          tt_tabh              = tt_tabh
          tt_tabb              = tt_tabb
          tt_tabf              = tt_tabf
      EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
      lw_html_data  = lw_job_output_info-xmloutput-trfresult.
      lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
      CLEAR lv_html_xstr.
      LOOP AT lw_html_data-content INTO lw_html_raw.
        CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
      ENDLOOP.
      lv_html_xstr = lv_html_xstr(lw_html_data-length).
      CALL FUNCTION 'SCP_TRANSLATE_CHARS'
        EXPORTING
          inbuff       = lv_html_xstr
          incode       = lv_incode
          csubst       = lc_true
          substc_space = lc_true
        IMPORTING
          outbuff      = lv_html_str
          outused      = lv_html_len
        EXCEPTIONS
          OTHERS       = 1.
    *HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
    *EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
      REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
    CALL METHOD html_control - >load_mime_object
       EXPORTING
         object_id  = 'ZWN'
         object_url = 'ZWN.GIF'
       EXCEPTIONS
         OTHERS     = 1.
      REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
    REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
       break mhusin.
      lv_html_len = STRLEN( lv_html_str ).
      lv_offset = 0.
      lv_length = 255.
      WHILE lv_offset < lv_html_len.
        lv_diff = lv_html_len - lv_offset.
        IF lv_diff > lv_length.
          lw_soli-line = lv_html_str+lv_offset(lv_length).
        ELSE.
          lw_soli-line = lv_html_str+lv_offset(lv_diff).
        ENDIF.
        APPEND lw_soli TO lt_soli.
        ADD lv_length TO lv_offset.
      ENDWHILE.
      CREATE OBJECT lc_mime_helper.
      CALL METHOD lc_mime_helper->set_main_html
        EXPORTING
          content     = lt_soli
          filename    = lv_name
          description = lv_subject.
      LOOP AT lt_graphics INTO lw_graphics.
        CLEAR lv_xstr.
        LOOP AT lw_graphics-content INTO lw_raw.
          CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
        ENDLOOP.
        lv_xstr = lv_xstr(lw_graphics-length).
        lv_offset = 0.
        lv_length = 255.
        CLEAR lt_solix[].
        WHILE lv_offset < lw_graphics-length.
          lv_diff = lw_graphics-length - lv_offset.
          IF lv_diff > lv_length.
            lw_solix-line = lv_xstr+lv_offset(lv_length).
          ELSE.
            lw_solix-line = lv_xstr+lv_offset(lv_diff).
          ENDIF.
          APPEND lw_solix TO lt_solix.
          ADD lv_length TO lv_offset.
        ENDWHILE.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
        lv_content_type = lw_graphics-httptype.
        lv_obj_len      = lw_graphics-length.
    *Add images to the email
        CALL METHOD lc_mime_helper->add_binary_part
          EXPORTING
            content      = lt_solix
            filename     = lv_filename
            extension    = lv_bmp
            description  = lv_description
            content_type = lv_content_type
            length       = lv_obj_len
            content_id   = lv_content_id.
      ENDLOOP.
      TRY.
          lv_subject = lv_subject.
          lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
                   i_subject          = lv_subject
                   i_multirel_service = lc_mime_helper ).
        CATCH cx_document_bcs INTO lc_send_exception.
        CATCH cx_bcom_mime INTO lc_send_exception.
        CATCH cx_gbt_mime INTO lc_send_exception.
      ENDTRY.
    Create send request
      TRY.
          lc_bcs = cl_bcs=>create_persistent( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->set_document( i_document = lc_doc_bcs ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Set-up email receiver
      lv_mail_address = '[email protected]'.
    TRANSLATE lv_mail_address TO UPPER CASE.
      TRY.
          lc_recipient = cl_cam_address_bcs=>create_internet_address(
              i_address_string = lv_mail_address ).
        CATCH cx_address_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->add_recipient( i_recipient = lc_recipient ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Send smartforms as HTML email
      TRY.
          lc_bcs->send( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      COMMIT WORK.
      WRITE:/ 'Mail sent'.
    ENDFORM.                    "call_smartforms
    End Code --->
    Thanks and Regards.

    1- put your images in a directory under the web app directory. Example: app/images/
    2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
    3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead

  • Can't import images using iCloud on iPad and Mac

    Yes. I have followed the "easy" instructions of the Apple site for setting my up my icloud account and sign in with both devices. Yes I have seen every imaginable youtube video of how to's and followed the steps.  I am connected to the internet, signed in with icloud in both devices, ticked automatic upload of photos, photo sharing, etc. Now where do I find the images? are they automatically imported NO and if I enter icloud from the internet can I see my images NO!
    and if i followed the easy steps to import them using iphoto, it just says something stupid like "import the photos" yeah...how???!!

    I have an Ipad2 and a Macbook pro, latest software versions downloaded today
    Which software versions exactly? "latest" may depend on your hardware. MacOS X10.9.1)? iPhoto 9.5.1?.
    Othe fact is when i go to the icloud.com the photos are not there either. I made an album on the ipad and "shared" manually the photos for icloud and nope, it doesnt work.
    How did you share the album?
    You can share to a shared Photo Stream and publish that stream as a public webpage on your iCloud webpage. Is taht what you have done? Then you need to use exactly the url, that is given, when you publish the webpage. It is not linked on your iCloud page.
    If I wanted download manually the photos to iphoto I cant I cant because the icloud icon doesnt appear in the left menu of iphoto like the one you are showing, it doesnt display either a shared button like the one you have in your screen and it doesnt explain at all how to import images.
    Let's compare the settings on your Mac:
    In System Preferences - you say you are signed into iCloud, o.k.
    Did you enable the options for "Photos"?
    Check, if bot "My Photo Stream" and "Photo Sharing" are enabled.
    Otherwise iPhoto will not show the iCloud options.
    In iPhoto you should see the iCloud panel I posted as a Tab in the iPhoto Preferences panel.
    (My screenshots are done in iPhoto 9.5.1 and MacOS X 10.9.1)
    iCloud: Using and troubleshooting Shared Photo Streams
    Mac with OS X Mavericks v10.9 or later and either iPhoto 9.5 or Aperture 3.5

  • How to calculate width of imported image

    I use the code below to layout 12 imported images. The code works fine as long as the images have a consistent width. However, the widths have now changed and my layout is screwed up. To solve the problem I'd like to change my layout formula to place images according to thier widths. However, my problem is that I cannot access the widths of the imported images. So my question is: How can I calculate the width of each imported image?
          for(var i:int=0; i<12;i++){
               imageLoader = new Loader();
               var url:String = "images/animal"+i+".png";
               var urlReq:URLRequest = new URLRequest(url);
               var sprite:Sprite=new Sprite;
               imageLoader.load(urlReq);
               imageLoader.x=70*i
               imageLoader.y=100
               sprite.addChild(imageLoader)
               addChild(sprite);

    Thanks. That makes sense. What type of event do I need for my event handler? If I use:
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,  imageLoaded);  
    Should I have:
    public function imageLoaded(e:Event):void {
       trace("Width="+e.contentLoaderInfo.??)

  • Importing images into projects

    can any1 please tell me how to import images into my netbeans IDE projects?this should be such that the jar file that is created displays them correctly- i am having this said problem with .jar files.
    plz help!!

    i use a function createImageIcon(ImageIcon icon) wfor which i provide a definition.
    the definition is as given in the java tutorial as follows
    protected static ImageIcon createImageIcon(String path)
    java.net.URL imgURL = LabelDemo.class.getResource(path);
    if (imgURL != null) {
    return new ImageIcon(imgURL, description);
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    the program executes perfectly from the IDE when i use the run finction of F6 key. I use netbeans IDE. the images are kept in a folder named images in the 'src' folder of the project. this folder is used to store source files by the IDE. The main thing is i put the images in such a place that the program executes perfectly without errors from the IDE. using the IDE which shows the contents of a .jar file, i verified that the images are indeedd present in the JAR file. however i still continue to get the same error. infact after add ing the images folder and running a 'clean and build' operation , the only difference is that the jar file, which still doesnt display images on buttons, labels etc has increased in size confirming tht the images have been added- i also verified this from the command line.
    but the same problem persists.

  • Importing images into catalog

    I'm new to elements, and simply want to import directories of images that sit on a network drive.
    I have many hundreds of photos on a network drive in many directories, can I point elements to those directories and have it read the files in those directories?
    SO far I have only been able to import by selecting images in individual directories.
    There must be a better way. What am I missing?

    Open the Organizer and click on the Display button (near top right) and change the view to Folder Location.
    Browse the folder location tree in the left hand panel, expanding where necessary to view sub folders.
    If you can see the Network Drive within the structure right click on it and choose Import to Organizer. Organizer will let you know if it can’t locate any valid images to import. You may need to drill down further into the network to locate the images as URL‘s are not valid.
     

  • Import Image Help

    Hello, now first, I want to point out that I have absolutely no idea how java works (maybe that's not true...), a noob if you will, I don't use it, but I need help because I have to do this for school.
    Alright, now I use this program called BlueJ. I want to know if there is a code for java to import images from file (c:\...), and put it as a background. here is my code:
    import java.applet.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.net.URL.*;
    // Kazuma Tonegawa
    // Info Tech 10
    // Block E
    public class TermOneProject
         // Draws the small "b"
         public static void main (String[ ] args) 
         {    Egyptian sam;            // create the variable named sam
              sam = new Egyptian();    // create the object sam refers to
              sam.getImage(http://www.htmlprimer.com/Images/index/logo.gif);
              sam.makeGuy ();    // Draws the straight bar of "b"
         }  // this right-brace marks the end of the main method
    }  // this right-brace marks the end of the class
    //I tried every thing but nothing works. I have no clue on how to do this, not even my teacher. can someone help on this?? Remember, I want to import from MY DRIVE. Thanks in advance.

    k, here's the egyption class:
    public class Egyptian extends StarTurtle
    // Make a 10x10 square; finish with the same position/heading.
    public void makeGuy()
    { move (90, 200);
    move (-90, 0);
    paint (-20, 25);
    paint (120, 25);
    paint (120, 25);
    move (-40, 25);
    paint (20, 25);
    paint (-120, 25);
    paint (-120, 25);
    move (60, -10);
    move (120, -30);
    move (-45, -15);
    swingAround (40);
    move (-95, 0);
    paint (0, 40);
    move (0, -20);
    paint (-90, 10);
    move (90,18);
    paint (-10, 50);
    paint (-170,45);
    move (0,10);
    move (80,10);
    paint (110,50);
    move (0,-50);
    move (140,35);
    move (110,-5);
    move (10,35);
    paint (0,50);
    move (90,0);
    paint (0,65);
    paint (90,35);
    paint (-90,20);
    move (0,-20);
    move (-90,35);
    move (-90,65);
    paint (0,65);
    paint (90,35);
    paint (-90,20);
    move (0,-20);
    move (-90,35);
    move (-90,65);
    paint (-90,70);
    paint (90,65);
    paint (-90,35);
    paint (-90,20);
    move (0,-20);
    move (-90,35);
    move (-90,65);
    paint (0,65);
    paint (90,35);
    paint (-90,30);
    move (0,-20);
    move (-90,35);
    move (-90,65);
    } //======================
    }it's supposed to be some guy. anyways, one thing I forgot to mention. I set it so that the egyption class extends a thing called starturtle, then starturtle extends smartturtle, then that extends the turtle, and finally it extends turtlet (which extends object) I'll put the turtle, and turtlet class just in case:
    Turtlet
    // Copy this file in its entirety to a file named Turtlet.java.
    // Compile it before compiling the Turtle.java file.
    // You can put Turtle commands inside the paint method of an applet if
    // you declare them as Turtlets rather than as Turtles using something like
    // new Turtlet (page, 100, 150), where page is paint's Graphics parameter
    // and you replace 100 by any x-coordinate and 150 by any y-coordinate to
    // obtain the starting point of your Turtlet.
    import java.awt.Color;
    public class Turtlet extends Object
    {     public static final double DEGREE = Math.PI / 180;
         public static final Color RED = Color.red, BLUE = Color.blue,
                        BLACK = Color.black,      GRAY = Color.gray,
                        YELLOW = Color.yellow,    PINK = Color.pink,
                        ORANGE = Color.orange,    GREEN = Color.green,
                        MAGENTA = Color.magenta,  WHITE = Color.white;
         private static java.awt.Graphics thePage;
         private double heading = 0;         // heading initially east
         private double xcor, ycor;          // current position of Turtle
         /** Set the drawing Color to the given value.  Made an instance method 
          *  only so that it cannot be called until thePage is assigned, although
          *  the drawing color is a property of thePage, not of one Turtle. */
         public void switchTo (Color given)
         {     thePage.setColor (given);
         }     //======================
         /** Write words without changing the Turtle's state.  */
         public void say (String message)
         {     thePage.drawString (message, round (xcor), round (ycor));
         }     //======================
         /** Supply the nearest int value to methods requiring ints. */
         private int round (double x)
         {     return (int) (x + 0.5);
         }     //======================
         /** Make a circle of the given radius, Turtle at center. */
         public void swingAround (double radius)
         {     if (radius > 0.0)
              {     int rad = round (2 * radius);
                   thePage.drawOval (round (xcor - radius),
                              round (ycor - radius), rad, rad);
         }     //======================
         /** Fill a circle of the given radius, Turtle at center. */
         public void fillCircle (double radius)
         {     if (radius > 0.0)
              {     int rad = round (2 * radius);
                   thePage.fillOval (round (xcor - radius),
                             round (ycor - radius), rad, rad);
         }     //======================
    // the Turtle class, completed
         /** Rotate left by left degrees; MOVE for forward steps. */
         public Turtlet move (double left, double forward)
         {     heading += left * DEGREE;
              xcor += forward * Math.cos (heading);
              ycor -= forward * Math.sin (heading);
              return this;
         }     //======================
         /** Rotate left by left degrees; PAINT for forward steps. */
         public Turtlet paint (double left, double forward)
         {     heading += left * DEGREE;
              double x = xcor + forward * Math.cos (heading);
              double y = ycor - forward * Math.sin (heading);
              thePage.drawLine (round (xcor), round (ycor),
                               round (x), round (y));
              xcor = x;
              ycor = y;
              return this;
         }     //======================
         /** Fill a rectangle of the given width and height, Turtle at center. */
         public void fillBox (double width, double height)
         {     if (width > 0.0 && height > 0.0)
              {     thePage.fillRect (round (xcor - width / 2),
                                    round (ycor - height / 2),
                                    round (width), round (height));
         }     //======================
         /** Pause the animation for wait milliseconds.  Made a class method
          *  so that an applet can pause an animation "between turtles". */
         public static void sleep (int wait)
         {     try
              {     Thread.sleep (wait);
              }catch (InterruptedException ex)
         }     //======================
         /** Create a Turtlet on a given Component at a given starting position.
          *  All Turtlets must be created from within the Component's paint()
          *  method or from a method called by it.  All Turtles live in
          *  the same world at any given time, so changing the page is analogous
          *  to spaceshipping the entire Turtle population to a new world. */
         public Turtlet (java.awt.Graphics page, double xstart, double ystart)
         {     if (page == null)
                   throw new NullPointerException ("You did not give a "
                                     + "world where turtles can live!");
              thePage = page;
              xcor = xstart;
              ycor = ystart;
         }     //======================
    // Turtle
    /*  Copy this file in its entirety to a file named Turtle.java.
    *  Compile the Turtlet class and then compile this class, before trying to
    *  compile any program that uses Turtles.
    *  This class draws to an Image object and lets the frame's paint method
    *  show the Image whenever the frame repaints itself. It is for
    *  Turtle commands that are given in or from a main application. */
    import java.awt.*;
    public class Turtle extends Turtlet
         private static TurtleWorld theWorld = null;
         /** Write words without changing the Turtle's state.  */
         public void say (String message)
         {     super.say (message);
              theWorld.repaint();
         }     //======================
         /** Make a circle of the given radius, Turtle at center. */
         public void swingAround (double radius)
         {     super.swingAround (radius);
              theWorld.repaint();
         }     //======================
         /** Fill a circle of the given radius, Turtle at center. */
         public void fillCircle (double radius)
         {     super.fillCircle (radius);
              theWorld.repaint();
         }     //======================
         /** Rotate left by left degrees; MOVE for forward steps.*/
         public Turtlet move (double left, double forward)
         {     return super.move (left, forward);
         }     //======================
         /** Rotate left by left degrees; PAINT for forward steps. */
         public Turtlet paint (double left, double forward)
         {     super.paint (left, forward);
              theWorld.repaint();
              return this;
         }     //======================
         /** Fill a rectangle of the given width and height, Turtle at center. */
         public void fillBox (double width, double height)
         {     super.fillBox (width, height);
              theWorld.repaint();
         }     //======================
         /** Create a turtle at the center of the default JFrame. */
         public Turtle()
         {     this (false, 760, 600);  // special case of the constructor below
         }     //======================
         /** If makeNewWorld is true, make an additional JFrame of the given
          *  width and height.  Create a turtle at the center of the JFrame. */
         public Turtle (boolean makeNewWorld, int width, int height)
         {     super (makePage (makeNewWorld, width, height),
                              width / 2, height / 2);
         }     //======================
         /** Only done as a separate method because super() has to be
          *  the first statement in the any constructor. */
         private static Graphics makePage (boolean makeNewWorld, int w, int h)
         {     if (theWorld == null || makeNewWorld)
                   theWorld = new TurtleWorld (w, h);
              return theWorld.getPage();
         }     //======================
    /** A TurtleWorld is a JFrame on which an Image object is drawn each time
    *  the JFrame is repainted.  Each Turtle draws on that Image object. */
    class TurtleWorld extends javax.swing.JFrame
         private static final int EDGE = 3, TOP = 30;  // around the JFrame
         private Image itsPicture;
         private Graphics itsPage;
         public TurtleWorld (int width, int height)
         {     super ("Turtle Drawings");  // set the title for the frame
              setDefaultCloseOperation (EXIT_ON_CLOSE); // no WindowListener
              setSize (width + 2 * EDGE, height + TOP + EDGE); 
              toFront();  // put this frame in front of the BlueJ window
              setVisible (true);  // cause a call to paint
              begin (width, height);
         }     //======================
         public void begin (int width, int height)
         {     itsPicture = new java.awt.image.BufferedImage (width, height,
                              java.awt.image.BufferedImage.TYPE_INT_RGB);
              itsPage = itsPicture.getGraphics();
              itsPage.setColor (Color.white);
              itsPage.fillRect (0, 0, width, height);
              itsPage.setColor (Color.black);
         }     //======================
         public Graphics getPage()
         {     return itsPage; // itsPicture.getGraphics(); => NO COLORS
         }     //======================
         public void paint (Graphics g)
         {     if (itsPicture != null)
                   g.drawImage (itsPicture, EDGE, TOP, this);
         }     //======================
    // hope that gives some clue to the problem... and thank you again.

  • HELP: How do I use iPhoto 08 to import images onto my iPhone 3G?

    Hi,
    I was wondering how best to import images into my iPhone 3G for viewing.
    Most of my image files are large high quality 2 -4 MB files.
    Is there an easy way to downsize the files for viewing on the iPhone 3G? Does iPhoto have a setting specific for import/export use with the iPhone?
    How do I set a specific photo as the phone's wallpaper and does it have to be specifically sized to use as wallpaper?
    I have read the iPhone 3G manual but it was less than helpful just saying "Use iPhoto to import photos onto your iPhone"...

    here is a thread with lots of discussion of this topic - http://discussions.apple.com/thread.jspa?threadID=1618079&tstart=105
    In general you make album(s) of the photos you want on the iPhone and sync the album(s)
    LN

  • Problem in getting the image through URL

    hi all,
    I facing the problem,Inwhich i am unable find the solution...I am using the following code to display the image
    public void doGet(HttpServletRequest request,HttpServletResponse response)
                        throws IOException, ServletException {
                   int data=0;
                   response.setContentType("image/png");
                   ServletOutputStream out = response.getOutputStream();
                   String file = request.getContextPath()+imageNames[0];
                   //String file = "C:/Program Files/Apache Group/Tomcat 4.1/webapps/ImageComm/WEB-INF/images"+imageNames[index];
                   BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
                   System.out.println("the size of the inputStream is..."+in.available());
                   System.out.println("the context path is..."+request.getContextPath());          
                   while ((data = in.read()) != -1) {
                   out.write(data);
    with the above i am not getting any error at the compile time but it was giving exception like FileNotFoundException.
    but the same thing(URL address) when i am copying on the browser it was displayig the image.
    (what might be the reason)
    one more thing when i commented on the url address and try to use the actual realpath address it was displaying the image with out any problem
    can anybody give me the solution like where to keep my images by which i can able to get the images through url address
    thanks in advance
    lakshman

    hi all,
    I am getting the image from the server.but the problem is i am getting the Exception as ArrayOutOfBound exception.
    It was displaying the Image for the first time.and when ever it was going for the second time in to the paint method it was displaying the IOException in reading the stream from the connection.
    can anybody give me the solution in rectifying that exception.
    thanks in advance
    lakshman

  • Unable to add/import images from other sources

    Hi,
    I'm using iPhoto 5.0.4, and I'm trying to import images that were captured on another Mac using iPhoto 2 and then burned to CD so that I could take them home. When I go to "Add to Library", it tells me that iPhoto could not import the files because they may not contain valid data or it may be an unrecognized file type. The file type is the same. Whether it's valid data or not is impossible for me to interpret since the pics open up in any image editing program just fine.
    Any suggestions or work arounds?
    Sophie

    Hi Sophie,
    Where are the images that you are trying to add to the library?
    did you put them in the iPhoto Library folder in the Finder manually?
    If you did, drag them to the desktop, then add them to the library.

  • Mac OSX, 10.7.5, LR 5.6  After creating a new folder in the Destination section and importing images, the new folder name appears as 2010, no matter what name I give it.  Why is it doing this?

    Mac OSX, 10.7.5, LR 5.6  After creating a new folder in the Destination section and importing images, the new folder name appears as 2010, no matter what name I give it.  Why is it doing this?

    I am experiencing Mavericks failing to copy subdirectories from usb sticks, I am backing up game saves from a console. Both sticks I use are fine, same permissions of course since the console wrote the files. Sometimes it copies, sometimes it doesn't. It seems to be related to the mounting process.
    Thank God Apple hasn't (yet) broken bash.

  • Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.

    Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.  Any suggestions?

    Solution discovered.  Faulty connector cable.  Tried a different one and it worked.

  • Aperture 3.3 updated. Importing images, can no longer access drive

    This has happened several times. Let me try and explain it a little better.
    I import images, step away from my computer, come back screen is blank (display asleep) the computer is not. I hit the space bar to bring it back to life and then try to do the next import. For some reason Aperture cant find the disk after that. I can get to it in finder and see the filesystem and folders.
    The only way I can get back into the library is to disconnect the drive, close aperture, plug the drive back in and start aperture. If I close aperture and re-open it, it says I dont have the proper permissions to open this library, checked that, I have read & write. I dont have this problem ising the drive with any other app.
    Never had this problem prior to upgrade & if I keep importing without the screen going dark it appears to stay working. Its very strange.
    Anyone?

    I am the person who first posted this question yesterday. After reading other postings this morning, I followed the advice to "restore" 3 Mozilla files which had been quarantined by Norton Internet Security yesterday. My Firefox 3.6.6 now works great. Also see:
    http://community.norton.com/t5/Norton-Internet-Security-Norton/What-is-WS-Reputation-1/td-p/228251/highlight/true;jsessionid=ED9D38B27E367CBEDBE1FB7DD5244F98

  • How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    Hi Keith, and all others chiming in, I do have the correct option checked in advanced settings telling iPhoto to copy the images into the library. What is a refernced library? Perhaps this is where I am getting confused. I exported my entire photo library from an old iMac5 to my external hard drive, from there I attempted to import the entire library to my new iMac. Am I overlooking an obvious and easy way to import from the hard drive to the new iMac--I dragged the entire photo pholder from the hard drive to the open window of iPhoto on the new computer. Now, I only get preview file sizes in iPhoto, unless I have my external drive open. Perhaps I need to import the original images from the hard drive in a different way...?! (This is making me feel pretty stupid.)

  • How to import images in iPhoto?

    I use iPhoto importing images from this same computer and from iPhone with iCloud. A problem I've always suffered also before buying iPhone was that I can't import images in iPhoto.
    Well, I can drag an image from, for example, the desktop, but if I delete that file on the desktop I won't be able to open that image in iPhoto, even if I've imported it. This is because of I don't know a way to "consolidate the library" in iPhoto (while I usually do it in iTunes), so iPhoto just manages my images, but it doesn't really import them.
    When, in iPhoto, I import a photo shooted with iPhone and showed in Photo Stream, that photo is really copied in the library, so in the computer, and I can delete the photo source, in fact if I delete that photo from Photo Stream that photo will remain however in iPhoto, and if I click on the high menu bar (FIle, Show Original ), a Finder window of the folder in which there is the copied photo will be opened. That finder is "hidden" in the stuff of the iPhoto Library (in Images folder of Mac), but it's not simply to go and find any photo in this way (folders and subfolders named with long numbers).
    So can I choose what way to use? The good of that second method is that iPhoto manage directly and really its photos because it "has" them, but the bad is the almost impossible way to find photos in that organization library (waster than iTunes media folder, that is clear). The good of the first method is that no automatic copies will be created because iPhoto just manage photos which remain in my folders, but the bad is that iPhoto doesn't manage them direclty, but depending on my folders and my files wherever and however they are, and I can't edit them because I would change the file that is used in iPhoto with an other different version.
    I think this is an annoying problem because there is a file with photos (i.e. the iPhoto Library) that contains copies of photos occuping memory while I don't know this is happening, because that copy is not announced, and simultaneously I have those photos of iPhoto free to be changed and removed with the risk of disappearing from the photos of the program.

    I can drag an image from, for example, the desktop, but if I delete that file on the desktop I won't be able to open that image in iPhoto, even if I've imported it
    That's an indication that you may have your library set up as a referenced library:
    Check the Advanced preferences in iPhoto to see if that checkbox is selected or not.  If it isn't checkec, check it and try importing agan. 
    To make sure all Photo Stream photos are automatically imported into your library set up iPhoto's PS preferences like this:
    You should read this User Tip by Terence Devlin which is the best treatise on how to access photos (for use outside of iPhoto):  How to Access Files in iPhoto
    OT

Maybe you are looking for

  • Include A Field in ALV which is not in data dictonary.

    Hi all,   Im doing ALV report.      in that i need to calculate the gross price.        so i've to take difference of two fields & store it in a variable.now i want to know how i should display this field in alv. Example: v_gprice = i_tab-netwr - i_t

  • Proformance issue with 'sid generation on activation'

    Hi Gurus, In our BW(NW 2004) system we are using Cognos as reporting tool, due to process chain failure at DSO level we unchecked 'sid generation on activation' and chain running successfully after that. unchecking will be a performance issue due to

  • I need to create a revision history block for my schematic drawings

    I have tried to use the Title Block Editor to make a revision history list block, but I can't get away from the structure of the title block with its forced field types, etc. Is there a way to create a revision history block? Thanks much, Tod Solved!

  • Form Colors

    I am using CFFORM. For my cfinput, how do I make the text boxes and/or checkboxes a different color. The form has a mixture of display (no changes) and entry fields and some users are complaning that they cannot see which fields to enter/edit, so I w

  • VL09- Output type

    Dear Sapguru, I want to configure output type for VL09 transaction for IDOC creation,Here scenario is to connect SAP to third party system in IS retail. VL09- Output type configuration-reverse goods movement Can anybody guide step by step cycle confi