Image Path
Please support our Java advertiser: Programming Forums
Thread Solved
![]() |
I am creating a jar file which when run displays an image the image path is hardcoded ie the whole path is written. So whenever the jar file is run on a different computer to my own the image is not shown.
So my question is how is it possible to display the image without explicity writing where the file is located, rather within the package itself?
Thanks in advance
So my question is how is it possible to display the image without explicity writing where the file is located, rather within the package itself?
Thanks in advance
•
•
Posts: 137
Reputation:
Solved Threads: 11
Read this thread: http://www.daniweb.com/forums/thread42410.html
You'll find that there are multiple ways to do what you need. I suggested getResource().
You'll find that there are multiple ways to do what you need. I suggested getResource().
![]() |
Similar Threads
Other Threads in the Java Forum
- add watermark in image (ASP.NET)
- Image in database (PHP)
- Displaying a remote image from url stored in my db (ColdFusion)
- how to insert image path (C#)
- path to file, from javascript (JavaScript / DHTML / AJAX)
- preloading image (white page between) problem (JavaScript / DHTML / AJAX)
- Adding Image (Path) into MySql Database (PHP)
- Square Image Thumbnail (PHP)
- how to display an attached image file in email (ASP)
Other Threads in the Java Forum
- Previous Thread: about big endian and little endian representation
- Next Thread: To get ip in j2me
•
•
•
•
Views: 769 | Replies: 4 | Currently Viewing: 1 (0 members and 1 guests)





If you found your solution, please mark this thread as solved.
Linear Mode