Kbase P63264: How to convert a ByteArrayHolder in Java to a string
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/19/2004 |
|
Status: Unverified
GOAL:
How to convert a ByteArrayHolder in Java to a string
FACT(s) (Environment):
Progress 9.x
FACT(s) (Environment):
OpenEdge 10.0A
FIX:
The following code shows how to convert an object of type com.progress.open4gl.ByteArrayHolder to a string:
/*-------------------------------------------------------*/
/* Convert com.progress.open4gl.ByteArrayHolder to String*/
/*-------------------------------------------------------*/
java.io.ByteArrayOutputStream x = new java.io.ByteArrayOutputStream();
x.write(someByteArrayHolder.getByteArrayValue());
String bytesAsString = x.toString();
x.close();