nhsoft.yhw wrote: > > Q7. > > how to get inputstream from ResourceReference object, here is code for > wicket 1.4.x > inputStream = > reference.getResource().getResourceStream().getInputStream(); > > but IResource interface has no getResourceStream() method in wicket 1.5.0 >
My solution : PackageResource packageResource = (PackageResource)reference.getResource(); inputStream = packageResource.getCacheableResourceStream().getInputStream(); The above method is mainly to the PackageResource resources saved to the database, so next time read from the database and display ----- http://www.517wm.com 外卖订餐分享工具 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-HttpServletRequest-in-wicket-1-5-tp3798272p3812014.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org