Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2008
    Location
    California
    Posts
    5
    Rep Power
    0

    Question Hosted Image Won't Transfer

    Hi,
    I have put the Lake.class applet onto an image, and hosted it on my website; however, I want to transfer the image to a blog or a profile.


    The only method I know of currently, which didn't work, of how to save an image would be to right click and save this image to a photo file on my browser and then upload it onto, say, photobucket.
    I tried uploading it to photobucket straight from the URL, it didn't work. But I figured I wouldn't need to host the image twice anyway.
    Being that it is on my website, doesn't that mean that it is already hosted?
    I used the img src tag too, to hopefully get the image to come over by pointing to it, but that doesn't work either, unless I'm doing it wrong. :o

    I thought maybe I could embed the image? The only embed code that I found while searching was the IMG tag. That also didn't work.

    Do images, with Java applets on them, not tranfer?

    So, any advice? I'm here to learn. Thank you

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    images, with Java applets on them
    Not sure what that means. Shouldn't it be the other way around:
    an applet with an image?
    Try your luck on an HTML forum, java is not the same as HTML or Javascript.

  3. #3
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

    Default

    The only method I know of currently, which didn't work, of how to save an image would be to right click and save this image to a photo file on my browser
    This works okay for images shown in html on a web page. Applets are shown in html but their image handling is internal to the applet and usually not available the way images int html code are.
    Being that it is on my website, doesn't that mean that it is already hosted?
    Possibly. The applet tag, if you use an applet tag, in your html code may have parameters that the applet reads to get the image address on the server. Find this with view menu > source or page > "view source" to get the html that renders the page in your browser. Look for the applet/object/embed tag that shows the applet name, codebase and parameters (if any). You might be able to use this to adjust the url in the address bar to find the image on the server. Then it is easy to save to your hard drive: right-click, save-as...
    You can use the server address in an img tag to show the image in your web page. If the image is in a jar file on the server you can download the jar file and unzip it to get at the image. You may have to play around with things a little to find your way. Some servers won't allow access, some will.
    Do images, with Java applets on them, not tranfer?
    No, you cannot click on a Java Applet to save the image unless the applet is written to support such a thing.

  4. #4
    Join Date
    Jul 2008
    Location
    California
    Posts
    5
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Not sure what that means. Shouldn't it be the other way around:
    an applet with an image?
    Try your luck on an HTML forum, java is not the same as HTML or Javascript.
    Maybe it should be, but I wouldn't know. I am still learning, thus my user name :D

    I am at least aware enough to know that Java is not HTML or Javascript, thankfully. I am not a complete dummy ;)

  5. #5
    Join Date
    Jul 2008
    Location
    California
    Posts
    5
    Rep Power
    0

    Default

    Quote Originally Posted by hardwired View Post
    This works okay for images shown in html on a web page. Applets are shown in html but their image handling is internal to the applet and usually not available the way images int html code are.
    Thank you for clarifying this for me.

    The applet tag, if you use an applet tag, in your html code may have parameters that the applet reads to get the image address on the server. Find this with view menu > source or page > "view source" to get the html that renders the page in your browser. Look for the applet/object/embed tag that shows the applet name, codebase and parameters (if any).
    This is my tag: < applet code ="Lake.class" width ="414" height="1040" >
    < param name ="image" value ="JacobsLadder-1.jpg" >
    < /applet >

    (I put in the spaces for this post)

    What sort of parameters would I need? Do you mean another type of tag?

    You might be able to use this to adjust the url in the address bar to find the image on the server. Then it is easy to save to your hard drive: right-click, save-as...
    I am not sure what you mean. The only way I know how to change the URL is to change the name of the file on the server which holds the image.

    I can add different names and different endings (like .php, or .gif etc...)


    You can use the server address in an img tag to show the image in your web page.
    I tried that already, unfortunetly it didn't work :(


    If the image is in a jar file on the server you can download the jar file and unzip it to get at the image. You may have to play around with things a little to find your way. Some servers won't allow access, some will.
    Jar file? *lol* This sounds promising, but I wish I knew what you were talking about. Sorry, this lingo is over my head. :D
    Do you possibly mean a container? Like a div tag? Maybe? *lol*

    Once I figure out what a jar file is how do I download it?
    Thankfully I do know what unzipping a file means.

    Do images, with Java applets on them, not tranfer?
    No, you cannot click on a Java Applet to save the image unless the applet is written to support such a thing.
    Great, thanks. Thank you so much for your help.

  6. #6
    Join Date
    Jul 2008
    Location
    California
    Posts
    5
    Rep Power
    0

    Question

    Could I possibly get the image and application to transfer easier if I put it inside an Adobe Flash Player? Just wondering. Thanks.

  7. #7
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

    Default

    Jar file? *lol* This sounds promising, but I wish I knew what you were talking about
    Here's a place that describes jar files Lesson: Packaging Programs in JAR Files
    Another on applets that may be helpful Lesson: Applets
    Java Code:
    < applet code ="Lake.class" width ="414" height="1040" > 
    < param name ="image" value ="JacobsLadder-1.jpg" > 
    < /applet >
    The value, viz, JacobsLadder-1.jpg, is the image name on your server. So you copy and paste this image file name into the end of the address in your browsers address bar, press enter and , hopefully, it will appear in your browser.
    For example:
    The url in the address bar on my browser for this page is
    "http://www.java-forums.org/new-java/10227-hosted-image-won-t-transfer.html"
    If I right-click on the Java Forums image at the top of the page I can click properties and then copy the address/url for the image which is
    "http://www.java-forums.org/images/ca_evo/misc/logo.gif"
    Since this is a full url I can paste it into the address bar, press the enter key and see the image. If it were a relative url then I would paste it into the address, usually starting at the end (same folder) and work my way back to the site url. Just depends on how things are set up.
    Learning to find your way among folders can take a little prectice and experimenting.
    So if your web site url is "http://www.myplace.com/" then you would (likely) paste the image file name in after the forward slash:
    "http://www.myplace.com/JacobsLadder-1.jpg"
    to start with. Since it is your web site you should know or have access to the directory structure and be able to locate it.

    I am not sure what you mean. The only way I know how to change the URL is to change the name of the file on the server which holds the image.
    I was referring to trying to find an image on a web page server.
    Since you already know where yours is this is probably of little value.

    You can use the server address in an img tag to show the image in your web page.
    I tried that already, unfortunetly it didn't work
    This sounds like the place to focus. Getting the correct url may be the key. If the image is on your server you should be able to show it in your markup (html code).

Similar Threads

  1. Fast Data Transfer 0.9.1
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 04-24-2008, 06:41 PM
  2. Replies: 0
    Last Post: 01-08-2008, 05:29 PM
  3. Fast Data Transfer 0.8.5
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-12-2007, 06:11 PM
  4. Fast Data Transfer 0.6.4
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-21-2007, 10:11 AM
  5. Fast Data Transfer 0.6.4
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-20-2007, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •