File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 159
    
    3

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: 60057
    
  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: 159
    
    3

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: 36508
    
  16
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: 10916
    
  12

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: 60057
    
  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: 159
    
    3

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
Creating a File object from a java class, when both are deployed in the same package!
newsletter module
Using JFreeCharts
Displaying images on JSP page
Create New Image Using 1.1