32,204 Topics
| |
hi, I am able to display a single image from the database on a webpage using the following code: rs1 = st1.executeQuery("select image from pictures where id='5'"); if(rs1.next()){ int len = imgLen.length(); byte [] rb = new byte[len]; InputStream readImg = rs1.getBinaryStream(1); int index=readImg.read(rb, 0, len); System.out.println("index"+index); st1.close(); response.reset(); response.setContentType("image/jpg"); … | |
Hi to all ! Im new to java n i m working on Project of Web base Image Annotation Tool using jsp and java i have to save n retrieve image in to database which im using is mysql How i can store image in to database not the refference … | |
I have been having a little trouble getting my program to output the results I am wanting. At first I was having trouble with a cast exception at this line: [code]out = (ParseResult[]) ipHostsFound.toArray();[/code] The cast exception was: [code][Ljava.lang.Object; cannot be cast to [Lfilelocation.struct.ParseResult;[/code] So I ended up changing it … | |
| Hey All, I've been working on this code for a while now, but can't quite come up with a working solution. I'm trying to make a specially designed ImageButton, which extends JButton. Basically, it replaces the regular JButton image with another image. I've figured out everything except this. Every button … |
I have data in ms-access database.I want to export it to Excel on click of a button which is in front end developed in core java. I am working on frames NOT applet. I developed a macro in access to export data to excel. But i dont know how to … | |
can some one help me to develop the code for the following methods [CODE]private void add(Bucket bucket) { // is the bucket in the table? // can it be added to the table? // can the bucket be added at its hashed index? // what is to be done if … | |
Hi, i am making an event calender but i'm stuck with making sure that a user choose a valid date (a user should'nt be able to choose a start date that is after the end date). Could anyone point me in the right direction please? My code is still a … | |
Hey there folks,I've been takinga course in data communications, which for the most part has been completely over my head, but anyway, for a project I need to write an instant messenger program. Prof as very vague about the detais, so I think It can be as simple as possible, … | |
i have a mydata.txt file with this in it: [ICODE]B.Friedel 38 LRC usa 20 1 1 1 21 410 300 300 300 18 0 1673 0 76 26 0 0 0 0 0 0 0 0 M.Fulop 26 LRC hun 17 1 1 1 26 308 300 300 300 1 … | |
I am developing e-library for visually challenged people, in this system i kept a utility to add book from one interface. I want to store the location of the actual book in the database while adding a book. For e.x. I am storing the book at c:\books\pdfbooks\bookname.pdf this location c:\books\pdfbooks\bookname.pdf … | |
I am trying to put together a simple inventory program for my class, but I keep running into one error that I just cannot seem to correct. Here is my code: public class DVD extends Product { // channel that the show was on private String channel; // constructor public … | |
My code is [CODE]package diningphilosophers; class DiningPhilosophers { // Η κλάση αναπαριστά την εφαρμογή static Philosopher philosopher[]; static Forks forks; static DiningRoom diningRoom; public static void main(String[] argv) { philosopher = new Philosopher[5]; forks = new Forks(); diningRoom = new DiningRoom(); for(int i = 0; i < 5; i++) philosopher[i] … | |
Hi, would someone please help me with the following quotions (the required is to implement a simulator for processes scheduling that takes a file contains N of processes each with required details,and then after reading these information from the input file ,the scheduler should schedule the processes for execution. input:N … | |
[COLOR="Green"]Hello all.. I have a problem with my program in here. I am making a chatting application and i just need a final touch. This is the code snippet i make to represent my problem. First, i'd like to tell that i want to make the sending process like the … | |
hi i read about JMF and make some search about other techniques of video streaming but i cant get a definite opinion in making this efficiently (high quality video) i need to make a program to transfer video from webcam to other clients over the network thanks in advance | |
I'm having trouble with a class which is fine until another method tries to access variables in the same class, seems like a scope issue to me. I get null pointers when i try to access an object which clearly works in a previous method. All my data and called … | |
Hi, I am trying to code a program which will allow a user to search through a .db file for a word which is specified through an argument. The main class is in a different file. I am having a hard time putting the contents from the DB file into … | |
Hi, I am trying to code a program which will allow a user to search through a .db file for a word which is specified through an argument. The main class is in a different file. I am having a hard time putting the contents from the DB file into … | |
Hi mates.. I have a small question.. I have now 3 different classes, sounds ok? this is the 1st class, called "Wire" [CODE]public class Wire { private boolean Value; public boolean isValue() { return Value; } public void setValue(boolean value) { Value = value; } }[/CODE] This is the 2nd … | |
Hi, I'm trying to find out how to call a method from another class every 0.5 seconds until I tell it to stop using a function from the same class (the class that is doing the calling). Does anyone know if this is even possible? I've done a few Internet … | |
Hi there, have anyone experience with the Telephony API, and can help please?, I have googled about it, and I get downloaded all possible files but I still having problem in understanding some of the connectivity issues, should the PBX I am using in system be compatible with the JTAPI, … | |
Hello yet again =) I am required to create a program that consists of two classes. The driver class calls on the other class to set/get radius and height variables and calculate the volume of a cylinder. The problem I am having is that; I create two objects with two … | |
I feel as if I have gone over this code until my eyes are bleeding. I am missing something, and I cannot seem to locate my problem. I am supposed to use an array to store my items, my output should display my items one at a time, and should … | |
I'm trying to make a program that can send email from mobile phone, and i'm using Mail4ME API and NetBeans to develop it. Here's the error message : [QUOTE]java.lang.SecurityException: Application not authorized to access the restricted API at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(SecurityToken.java:170) at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(SecurityToken.java:145) at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8) at com.sun.midp.midlet.MIDletState.<init>(+83) at javax.microedition.midlet.MIDletProxy.<init>(MIDletProxy.java:33) at javax.microedition.midlet.MIDlet.<init>(MIDlet.java:70) at … | |
I am trying to access a Clientside server file from an HTML file. Can anyone help me with how to code it? :eek: here is what I have: [code=html]<form method="get" <if true then action=" :?: *****This is were I need to access Client side server ****** " else action= "file:///K:/web-content/Client … | |
Can u suggests me some powerfull but understandable java code for encrypting and decrypting password.The password should be encrypted and stored into the database and can be retrived ,decrypted | |
Hello" I want to capture live video from web-cam to view it in a web page to access it using mobile phone and software i'm using is java jdk6,jakarta Tomcat as server and the web page is JSP. Thanks | |
Should would i turn the following code: [CODE] import java.awt.*; import java.io.*; import java.util.StringTokenizer; public class ex74 { public static void main(String[] args) throws IOException { Frame f = new Fram(); String sent; StringTokenizer st; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a sentence: "); sent = br.readLine(); sent = … | |
A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units … | |
Hi, I want to create a web application that will let a user enter name in a text field and the application creates a newtab with datafields for that user to enter, it all must happen on a single page. There has to be one tab for each specific name … |
The End.