Accessing data from encrypted file...

245 byte By Kuntilanaka at 2007-11-27 4:33:02
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...

Strange...

580 byte By Eyal2007a at 2007-11-27 4:35:20
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 = ...

Help with Digital Signature

371 byte By eng.aymana at 2007-11-27 4:35:29
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 ...

Applet Deployment issue

255 byte By Drogo_Nevetsa at 2007-11-27 4:36:28
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?

Need help rotating an image :)

775 byte By AbstractFirea at 2007-11-27 4:36:37
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, ...

how do I change the Graphics Font

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 ...

Proxy and NAT BYPASS

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 ...

Image from byt[] - byte[] from Image

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.

No pilot found - Testing embeded audio in JSPs

547 byte By deaconj1234a at 2007-11-27 4:41:29
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 ...

(newbie) Importing certificate with keytool..?

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 ...

Problem Encrypting URL using AES

2050 byte By sdfgs3456a at 2007-11-27 4:43:52
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 ...

Slow background image in a JPanel

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 ...

Help please

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 ...

creating video from images

129 byte By it_shailua at 2007-11-27 4:45:20
i want create video from series of mpeg imagescan anyone help meany help appreciatedThanks in advance

How to provide streaming in J2EE web application?

455 byte By vikaskhengarea at 2007-11-27 4:47:54
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 ...

Polygon - Clique Drawing

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 ...

how to rotate a imageicon?

112 byte By suncs2001a at 2007-11-27 4:48:59
just 90,not any degree,i can't not find any information about this in my books now ,so can you help me ?

java <--> openssl interop

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 ...

Encrypt using Public key

177 byte By eng.aymana at 2007-11-27 4:49:53
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

Why merge.java does not die like most of the programs

206 byte By jahansoza at 2007-11-27 4:50:42
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

AES padding issue

1508 byte By tony.thompsona at 2007-11-27 4:50:45
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 ...

DigitalSignature Algorithms

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 ...

problem decrypting a string

521 byte By valerio_arnaboldia at 2007-11-27 4:52:06
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() ...

My pencil (drawing program) is too slow!

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 ...

Exception when using Cipher

653 byte By eng.aymana at 2007-11-27 4:52:32
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 ...

Preventing disappearance of the drawings?

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 need help~

10152 byte By nickgoldgodla at 2007-11-27 4:53:40
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 ...

Encryption scheme advice please!

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 ...

media player problem

739 byte By emanuele.ga at 2007-11-27 4:57:32
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 ...

How to realize encrpytion string with RSA method?

282 byte By EdwardKinga at 2007-11-27 4:58:03
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

Password encryption

1758 byte By nizarhandala at 2007-11-27 4:59:04
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 ...

i have a little problem

9973 byte By nickgoldgodla at 2007-11-27 4:59:47
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 ...

A basic Gui designing concept

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 ...

Rotate and scale an image witohout deforming it

461 byte By Don_Fabrizioa at 2007-11-27 5:01:27
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 ...

The diference between MediaLocator and DataSource to create Processor

917 byte By dreampeppers99a at 2007-11-27 5:01:37
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 ...

EPS Conversion.

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

Translating viewplatform causes trouble

4522 byte By logophobiaa at 2007-11-27 5:03:12
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 ...

Player can play mp4 if i install fobs4jmf?but

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?

help with pong collision

21732 byte By omgitsadama at 2007-11-27 5:08:43
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 ...

Signature failed to verify

3820 byte By jana.nguyen@gmail.coma at 2007-11-27 5:09:05
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 = ...

Illegal character in Base64 encoded data

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 ...

Manipulating the IP TOS field through java media framework

237 byte By mrlindermana at 2007-11-27 5:09:24
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

creating and moving images

270 byte By jeevan25a at 2007-11-27 5:10:48
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.

Drawing a right-angled triangle

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!

About Diffie-Hellman Key Exchange Algorihtm

442 byte By justin581209a at 2007-11-27 5:12:47
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 ...

Reading JPEG with comments

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 ...

IllegalBlockSizeException while using DES encryption

3556 byte By vishal2007a at 2007-11-27 5:13:03
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 ...

extracting frames from video

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

how to retrieve private key from internet explorer

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 ...

rotate help

2371 byte By Didge1987a at 2007-11-27 5:14:28
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 ...