This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ranch Office and the fly likes Embed Image in Post Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Embed Image in Post" Watch "Embed Image in Post" New topic
Author

Embed Image in Post

Ron McLeod
Ranch Hand

Joined: Feb 12, 2013
Posts: 292
    
    5

At times I find it value to be able to embed images like screen captures of UI. I have been able to do this using the [img] tag, but that creates a link to where I host the image. It there a way to actually upload the image to the coderanch.com, so that the image will not disappear from the post if I end-up removing it from my site someday?

Thanks.

If this is the wrong forum for this question, please let me know where I should post.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60755
    
  65

Click on "Attachments" beneath the posting box.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ron McLeod
Ranch Hand

Joined: Feb 12, 2013
Posts: 292
    
    5

Thanks - I'll give it a test here (didn't see a sandbox anywhere on the site).

It looks like it does work - too bad it does not show-up in the Preview.
Thanks for the help.




[android-R-class.png]

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37926
    
  22
It is usually better to cut‑‑paste text than to add screenshots, however. Text would show up on preview.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11153
    
  16

other advantages to text:

it is searchable
others can cut'n'paste it into other files - like if they want to try compiling the code themselves.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60755
    
  65

Agree with the others; images are fine for things that cannot be shown in text. But please post text as text.
Ron McLeod
Ranch Hand

Joined: Feb 12, 2013
Posts: 292
    
    5

Campbell Ritchie wrote:It is usually better to cut‑‑paste text than to add screenshots, however. Text would show up on preview.

Understood. In this case I wanted to show that hovering-over the R class would pop-up a box with the fully qualified class name. The code wasn't relevant.

Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Embed Image in Post
 
Similar Threads
Displaying images on JSP page
Using JFreeCharts
Create New Image Using 1.1
newsletter module
Creating a File object from a java class, when both are deployed in the same package!