Re: Accessing a resource inside a jar

2013-03-26 Thread Clinton N. Dreisbach
John, That appears to be working. Thanks! -- Clinton On Tuesday, March 26, 2013 12:04:38 AM UTC-4, John Hume wrote: It looks like MimetypesFileTypeMap wants a path to a plain file. I can't try this right now, but I think you want the constructor that takes an InputStream. Something like

Re: Accessing a resource inside a jar

2013-03-25 Thread John D. Hume
It looks like MimetypesFileTypeMap wants a path to a plain file. I can't try this right now, but I think you want the constructor that takes an InputStream. Something like (MimetypesFileTypeMap. (io/input-stream (io/resource thefile))) though if you just passed /thefile to io/input-stream, that