Hi, is it possible to read data from file that encrypted using javax.crypto.* without decrypting that file back such as Microsoft Access Database file?If it is possible, would somebody please show me how to do that.....thank you...
Hi All,When I want to run my small Java2D program with Eclipse I get the following for the simple sentence :g2.draw(shape); The Eclipse says:"The method draw(Shape) in the type Graphics2D is not applicable for the arguments (Shape)"How come?Also for this one : Shape shape = ...
Hi,I used the digital signature technique from http://java.sun.com/docs/books/tutorial/security/apisign/gensig.htmlI need to save the private key into file, i save and read it as Object, but when generating the digital signature from the private key saved from the file, the digital signature ...
OK I have a application that works 100%I have changed it so that is should work as an applet.but when I run the web page with it i just get a white box. no java load page thingIs this an issue with Canvas3D or something?
Alrighty!public void rotate(Graphics g, int direction){Image ship = sprite.getImage();double turnDirection = Math.toRadians(direction);AffineTransform AF = new AffineTransform();Graphics2D g2 = (Graphics2D) g;//g2.drawImage(ship, 0, 0, null);g2.drawImage (ship, ...
708 byte By
hillmia at 2007-11-27 4:36:52
I want to use in Java one of the following MS XP fonts:Tahoma, Verdana, or MS Reference Sans Serifbecause they distinguish among the Il|170O.When I use the line referencing Graphics instance g:System.out.println(g.getFont().getFontName());in a program, it prints 揇ialog.plain?Then when I use the ...
336 byte By
Sunaya at 2007-11-27 4:39:17
hi everbody,i have already sloved the problem of voice transmission for the LAN, working fine on the LAN but for the Internet, to make it working for it there are some problems of NAT and Proxy, If any one have solved the problem like this then pls help me i m really in need of it. With Regards ...
289 byte By
Ehsuna at 2007-11-27 4:39:26
How can I:Construct an Image from byte[]?And get byte[] from an Image?I've found some examples but none of them fit my need completely.The final goal of mine is to read an Image from a BLOB and resize it (making thumbnail) without any intermediate file.
Hi, I have a JSP which works fine.I added a link <a href="sounds\cello.wav">play the song</a>to play a sound file.I tested the link in a normal html page in a browser and it works fine (open MS media player when clicked).I checked the path and its correct.Could it be that I am ...
429 byte By
ypomonha at 2007-11-27 4:41:30
I'm trying to import a certificate with: * keytool -import -alias mycert -file lalakis.pembut I keep getting: ~ keytool error: java.lang.Exception: Input not an X.509 certificateIt is: - An OpenSSL generated certificate with - Signature Algorithm: PKCS #1 MD5 With RSA Encryption and - Subject ...
I am successfully encrypting a URL from my client servlet and my serverside servlet handles the request. The code is below.My problem is that the decrypted URL is not the "id=101&item=22&conf=12234" I am expecting -- in fact, the encrypted part of the URL is changing each time (not what ...
1866 byte By
williwa at 2007-11-27 4:44:10
I have a simple JPanel class which only draw the background image. I'm using the StackLayout of other JPanels ontop of the background panel, doing different stuff like draw rectangles. But everything is in slow motion. But if I comment out the background panel, everything runs smoothly. The ...
638 byte By
Spaniana at 2007-11-27 4:45:14
hi,I am doing a media player, and the help i need is when i run my media player and try to play video, it gives me the following errorFobs4JMF - Native shared library NOT foundjava.lang.UnsatisfiedLinkError: no fobs4jmf in java.library.pathat ...
i want create video from series of mpeg imagescan anyone help meany help appreciatedThanks in advance
Hi Friends,I want to build web application which will provide streaming of data. This data may be in raw data, binary, files, audio, video etc. As we are using HTTP protocol for web application, then how to do streaming between server and client using HTTP protocol i.e in request response ...
4870 byte By
Jona_Ta at 2007-11-27 4:48:54
Hello,I wish to shorten my earlier posting for clarity. If I can re-implement the code below using a dynamic approach, then my problem in the earlier posting will be solved.import java.awt.Color;import java.awt.Graphics2D;import java.awt.Polygon;import java.awt.image.BufferedImage;import ...
just 90,not any degree,i can't not find any information about this in my books now ,so can you help me ?
701 byte By
tzachara at 2007-11-27 4:49:34
Hello.I have a problem when trying to decrypt data in java, which was encrypted using openssl.I keep getting a BadPaddingException("Given final block not properly padded").After trying to come up with a simple test case, i found the following strange fact; when encrypting a string in openssl ...
I have a plain text and public key, how i can encrypt the message using the public key and decrypt it using the corresponding private key?Any Example?Thanks
Hi I am new to JMF Why merge.java does not die like most of the programs and System.exit(0) is used to kill it. Is there something I can add so it dies once it is finished.Thanks
I searched this forum and couldn't find anything that explained my exact situation so here it is....I am trying to decrypt some data and I end up with 0 bytes padded at the end. Any idea what I am doing wrong? Here is my decrypt() method:protected final byte[] decrypt( final byte[] key, final ...
409 byte By
av85a at 2007-11-27 4:51:16
Hi all,i want to decrypt a digital signature that is encoded with MD5withRSA algorithm with the padding as specified in rfc 2313 (pkcs#1v1.5). i also have the public key for decryption.can i use the Signature class in java with the string type "MD5withRSA" without specifing any provoder. Will ...
hi,I've a problem with cryptography: I'm trying to encrypt a string, put it in another string containing XML tags, send this XML by AJAX to a Servlet, and then decrypt the string.I can't send a byte char using AJAX, so I have to convert the result of the encryption with the .toString() ...
8380 byte By
CbbLea at 2007-11-27 4:52:18
I have a "pencil" function similar to the one in paint() where I press the mouse and it draws on a JPanel.However, pretty quickly it gets slow and the drawing can't keep up with the mouseDragged events. How can I make this faster?this is my class representing the pencil drawingfunction:import ...
I have this codeKeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");keyGen.initialize(1024);KeyPair keyPair = keyGen.genKeyPair();PrivateKey priv = keyPair.getPrivate();PublicKey pub = keyPair.getPublic();SecretKeySpec skeySpecc = new SecretKeySpec(pub.getEncoded(), "AES");Cipher ...
489 byte By
oforcea at 2007-11-27 4:53:07
Well i am working on a paint program, i created the main frame gui, for entering parameters i created another jframe, since java does not have a close method, i just change the visiblity of the second frame to false and make it invisible.. the problem is that whenever i enter parameters to the ...
i make this code for move the playerimage falling down and when it touch the rectimage it stop and also the playerimage not on the rectimage it falling down again.But here is the problem the playerimage have stop when touch but it don't falling down again when the playerimage not on the image ...
2029 byte By
scuzziea at 2007-11-27 4:55:55
Hi all,I am trying to implement a client/server messaging scheme over a network socket.I have never performed any kind of encryption before, so this is my first try!I am currently trying to get it to work with the following scheme in order to establish communication using symmetric ...
Hi guys. Why runnuing a MediaPlayer in netbeans it works (I see the video) and if I exec it from command line I haveC:\Documents and Settings\emanuele\player\src>java -classpath .;lib\ext\mp3plugin.jar;lib\ext\jmf.jar;lib\ext\fobs4jmf.jar ...
I have a string password,I want to encrpyt password before keeping it in database,I don't konw how to realize RSA encrpytion method and how to encrpytion password with RSA method,is there a source code to realize this function?Thanks!Best regards,Edward
I need to translate the following C# code to java code:public static string Encrypt(string toEncrypt, string key, bool useHashing){byte[] keyArray;byte[] toEncryptArray = UTF8Encoding.UTF8.GetBytes(toEncrypt);if (useHashing){MD5CryptoServiceProvider hashmd5 = new ...
my problem is my playerIcon can auto falldown and it touch the rect the playerIcon stop but press left to walk out the rect it do not fall down again.i use theard do this (playerRect.y += dy) when touch Rect i do this (dy = 0)then it stop. how to make it falldown again when the playerIcon awlk ...
478 byte By
ardmorea at 2007-11-27 4:59:49
Many of today's applications use a multiple-document interface--a mainwindow (called the parent window) containing other windows (called child window), to manage several open documents that are being processed in parallel.What I confuse is the concepts of panel and frame.Is a parent window a ...
Hello you all!I have to rotate and scale an image, but i don't wont to deform it.I'm thinking to something like 16/9 images on 4/3 screens (with two horizontal or vertical black lines around the scaled image)...I thinked to transform the image in bitmap format, then create a bigger image and ...
When I want to delevery stream of media, I use the MediaString port = "22000";String ip = "192.168.1.3".;// this is the ip of the Target machine not of server machineMediaLocator ml = new MediaLocator ("rtp://"+ip+":"+port);Processor processor = Manager.createProcessor (ml);In this case I need ...
163 byte By
J-Buzza at 2007-11-27 5:01:48
I am wanting to convert EPS formatted image to JPEG.Is that possible with JAI, if not does anyone know of an API Callable solution?ThanksJason
My scene is setup like this:* I have a 2D textured plane on z=0 from x,y=1,1 to x,y=-1,-1* There are a couple of objects located on the plane, basically pyramids, pointing upwards (to z+), but their base is at z=0, on the plane, during the course of the application they are moving across the ...
197 byte By
capea at 2007-11-27 5:05:10
i install fobs4jmf.and Fobs_jmstudio.exe worked well with mp4 as well as jmstudio.exe.but when i use some code to player mp4,it can't work.and it can work well with other format.why?
I am working on a pong-like game for a project... and i am having some trouble with collision checks... again.Here is our code so far, the problem is that the ball seems to be stopping completely when it is aligned with a paddle on the Y axis (even if it is at the center of the screen)import ...
Hi there,I'm having a problem verify a signature using my public key. I get the following error when I run call the method verifies from Signature object:Verifies = falseMy code below any help is much appreciated:public static void main(String[] args) throws Exception {FileInputStream fis = ...
2137 byte By
cup_joea at 2007-11-27 5:09:09
Hi,I'm trying to get a print out the public key as a String, which I am getting it in as a base64 encoded, but I get error:Exception in thread "main" java.lang.IllegalArgumentException: Illegal character in Base64 encoded data.Code below:public static void main(String[] args) {File pubKeyFile ...
hello there, topic says it all. is there any way to set the IP TOS field through jmf? im asking this to theoretically prioritize streams in the "Sip Communicator" ill be glad for any responses, thanks in advancekolja
Hi, I would like to make a game as hobby in Java but have no clue of anything. Can anyone show me how to create and move the images? I don't know how to show an image in window but I do know about JComponents and actionListeners such as mouse and key. Thank you.
169 byte By
SFLa at 2007-11-27 5:12:31
Hi,I need to draw a right-angled triangle; I searched the API and tutorial but couldn't find anything.How can I draw such a triangle?Thanks!
Hi... experts. I've got a problem about Diffie-Hellman Key Exchange. Is that possible to actually exchange a secret session key via Diffie-Hellman Key Exchange? or the secret session key (g^xy) is actually generated after the exchange of g^x and g^y by the two parties? My project supervisor ...
777 byte By
andremoa at 2007-11-27 5:12:55
Hello, I want to read some jpeg images from a FTP server. Some files contains a xml comment at the beginning of the file. If i try to read the file with either ImageIO.read(..) or an ImageReader, an exception is thrown in the form: "Not a JPEG file: starts with 0x01 0x11". Each image throwing ...
Hi, Can anyone help me to resolve IllegalBlockSizeExceptionBelow here is the code i am using***************************************************************import com.opensymphony.webwork.ServletActionContext;import sun.misc.BASE64Decoder;import sun.misc.BASE64Encoder;import ...
115 byte By
kokilaaa at 2007-11-27 5:13:12
HiCan anyone say me how to extract disismlar frames from a videoThanks in advancekokila
322 byte By
ajkra at 2007-11-27 5:13:17
Dear alli need to retrieve private key from personal store of IE, so that i can sign any document. i know this can be done using sunMSCAPI provider using jdk1.6. but i am not able to retrieve keys. please let me know how to do it using jdk1.6.if possible post any code ...
ok ive gotCar car = new Car(100,100, 0.0);car.draw(g2);Car car1 = new Car(100,110, 0.5);car1.draw(g2);Car car2 = new Car(100,120, 0.25);car2.draw(g2);Car car3 = new Car(100,130, 1);car3.draw(g2);andimport java.awt.Graphics2D;import java.awt.Color;import java.awt.Rectangle;import ...