aspose file tools*
The moose likes JSP and the fly likes String to byte[] Help needed- Urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "String to byte[] Help needed- Urgent" Watch "String to byte[] Help needed- Urgent" New topic
Author

String to byte[] Help needed- Urgent

ndsampath kumar
Greenhorn

Joined: Dec 08, 2001
Posts: 1
I am encrypting a string to a byte array using a jar package available on net. I am passing that byte array(it is like [B23u7sd3 ) as querystring to a link. In that page I am getting this byte array as String(same value i.e [B23u7sd3 ). I want to type cast it to byte array which should have the same value(i.e [B23u7sd3 ). Because I have to pass the value to a method to decrypt it to actual string value. The method accepts only byte array. Please help me.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Use String.getBytes()
Dave.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String to byte[] Help needed- Urgent
 
Similar Threads
How to convert RAW(32) to String?
Retrieving blob data in java
convert byte array to string index by index
Synchronization of public methods in DVDDatabase
converting BCD to string