Re: Read/open image from resource inside a JAR file?
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Jun 01, 2016; 12:05am
URL: http://imagej.273.s1.nabble.com/Read-open-image-from-resource-inside-a-JAR-file-tp5016554p5016565.html
> On May 31, 2016, at 10:22 AM, Burger Wilhelm <
[hidden email]> wrote:
>
> Hello group,
>
> does anyone know of a straightforward way to read/open an image that is contained as a resource inside a JAR file? That is, without perhaps copying an java.io.InputStream to a temporary file etc. …
The JAR Resources Demo plugin at
https://imagej.nih.gov/ij/plugins/pcl-demo.htmlopens a JPEG image, a TIFF image and a text file contained in a JAR file. It opens the JPEG using a URL and the TIFF using an InputStream.
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html