aspose file tools
The moose likes Java in General and the fly likes encoding on a byte[] Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "encoding on a byte[]" Watch "encoding on a byte[]" New topic
Author

encoding on a byte[]

M Burke
Ranch Hand

Joined: Jun 25, 2004
Posts: 375
I am moving blobs from one Oracle table to another. When I get the stream, the ejb requires it to be converted to a String to be stored as a Long Raw type.

Do I need to worry about encoding the string? Can I find the encoding on the byte array?
Rick O'Shay
Ranch Hand

Joined: Sep 19, 2004
Posts: 531
What kind of EJB is it and why is the LONG RAW column being converted to a string? Assuming it's an entity bean is it BMP or CMP and in any case why is the LONG RAW column being convereted to a string? As to whether encoding is important, I should think so if you are not the only consumer of that column. Other systems are going to have expectations about the format that you cannot change. Need more details.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: encoding on a byte[]
 
Similar Threads
how to convert byte array to string in java?
Character encoding
problem converting unicode characters from native to Java
validating a byte array for some encoding
difference between the two