±Û¾´ÀÌ :ÀüÀÀ½Ä 1998³â 2¿ù 26ÀÏ 11:54:47
In Reply to: µ¥ÀÌŸº£À̽º ÇÑ±Û ¹®Á¦ ÇØ°áÃ¥ÀÇ ¹ö±× ±³Á¤. posted by ±è´öÅ on 1998³â 2¿ù 25ÀÏ 19:20:11:
±è´öÅÂ´Ô Áú¹®¿¡ ´äÀ» ÁÖ¾î¼ °¨»çÇÕ´Ï´Ù.
ÀÏÁ¤ºñÀ²·Î ÇѱÛÀÌ ±úÁö´Â ¹®Á¦´Â
¸»¾¸ÇϽŴë·Î Oracle jdbcµå¶óÀ̹öÀÇ ¹ö±× °°±º¿ä.
±×·¡¼ ´Ù¸¥ ¹æ¹ýÀ¸·Î ÇѱÛÀ» °¡Á®¿Ã·Á°í ½Ãµµ¸¦ ÇØ º¸¾Ò½À´Ï´Ù.
À̹ø¿¡´Â getUnicodeStreamÀ» ½áº¸¾Ò½À´Ï´Ù.
±×·±µ¥ °¡Á®¿À´Â °ÍÀÌ ¾Æ·¡¿Í °°Àº ÄÚµå·Î °¡Á®¿Í ÇѱÛÀÌ ¶Ç ¸»½éÀ»
ºÎ¸®´õ±º¿ä.
<¼Ò½º> InputStream input = results.getUnicodeStream(i) ; //Unicode Ascii BinaryStream String str = "" ; byte bytes[]; int k=0; if(input==null) System.out.println("input null") ; try { bytes = new byte[16]; while(true) { bytes[k++]=(byte)input.read() ; if(k == 14) break ; } str = new String(bytes); System.out.println("BIN1 = "+str) ; System.out.println("BIN2 = "+fromUni12(str)) ; for(int p=0 ; p <16 ; p++) { //char c = str.charAt(p) ; System.out.print(Integer.toHexString(bytes[p])+",") ; } } <°á°ú> ÀԷ³»¿ë : 1abc °¡³ª ResultB1= oracle.jdbc.driver.OracleConversionInputStream@1ccef3 BIN1 = 1abc 45# BIN2 = 1abc 45# 0,31,0,61,0,62,0,63,0,20,34,0,35,23,0,0,
¾î¶»°Ô ÇÏ¸é »óÀ§ ¹ÙÀÌÆ®¿Í ÇÏÀ§ ¹ÙÀÌÆ®¸¦ Á¶ÇÕÇÒ¼ö ÀÖ´ÂÁö,
¶Ç Á¦°¡ ¹«¾úÀ» À߸ø °¡Á®¿Ô´ÂÁö ¾Ë°í ½Í½À´Ï´Ù.
<Âü°í> getAsciiStram¿Í BinaryStreamÀ» ½èÀ»¶§.. ResultB1= oracle.jdbc.driver.OracleConversionInputStream@1ccef3 BIN1 = 1abc #??? BIN2 = 1abc #??? 31,61,62,63,20,0,23,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff, ffffffff,ffffffff,0,0,