Play VCD in VLC Player in Ubuntu Get link Facebook X Pinterest Email Other Apps May 15, 2013 Type this command to play vcd in vlc palyer in ubuntu. vlc vcd:///dev/sr0 Get link Facebook X Pinterest Email Other Apps Comments
Maven + Oracle XE + Sample App February 17, 2016 <dependency> <groupid>com.oracle</groupid> <artifactid>ojdbc6</artifactid> <version>11.2.0.3</version> </dependency> ... <repositories> <repository> <id>codelds</id> <url>https://code.lds.org/nexus/content/groups/main-repo</url> </repository> </repositories> public class OracleSample { public static final String DBURL = "jdbc:oracle:thin:@localhost:1521:XE"; public static final String DBUSER = "rtpmodern"; public static final String DBPASS = "P@ssw0rd"; public static void main(String[] args) throws SQLException { // Load Oracle JDBC Driver DriverManager.registerDriver(new oracle.jd... Read more
Dynamic Image in Jasper Report August 08, 2012 jrxml content <image> <reportElement x="5" y="5" width="200" height="90"/> <imageExpression class=" java.awt.Image "><![CDATA[$P{logo}]]></imageExpression> </image> Java Code to convert image from URL into BufferedImage URL url = new URL("http://localhost/image/image.jpg"); // Read the image ... InputStream inputStream = url.openStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int n = 0; ... Read more
Display Images From a Non-Project Directory in JSF May 08, 2012 <h:graphicImage value="/headerimage/?img=logo.jpg"/> Create Servlet : @WebServlet(name = "DynamicImageServlet", urlPatterns = "/headerimage/*"}) public class DynamicImageServlet extends HttpServlet { protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try { //Get image file String img = request.getParameter("img"); BufferedInputStream in = new BufferedInputStream(new Fil... Read more
Comments
Post a Comment