SAK }‘ŠÙ
Oracle PL/SQL •Ò12 - BASE64 ƒGƒ“ƒR[ƒhAutl_encodeAbase64_encode
¡UTL_ENCODE (Oracle9i - 9.0.1 ˆÈ~) EUTL_ENCODE ‚Å‚ÍABASE64 ‚È‚Ç‚Ì•¶ŽšƒR[ƒhŒ`Ž®‚̃Gƒ“ƒR[ƒhAƒfƒR[ƒh‚ª ‚Å‚«‚éBUTL_ENCODE ‚É‚ÍA utl_encode.base64_encode BASE64 Œ`Ž®ƒGƒ“ƒR[ƒh utl_encode.base64_decode BASE64 Œ`Ž®ƒfƒR[ƒh utl_encode.uuencode uuencode Œ`Ž®ƒGƒ“ƒR[ƒh utl_encode.uudecode uuencode Œ`Ž®ƒfƒR[ƒh utl_encode.quoted_printable_encode ˆø—p•„•t‚«Œ`Ž®ƒGƒ“ƒR[ƒh utl_encode.quoted_printable_decode ˆø—p•„•t‚«Œ`Ž®ƒfƒR[ƒh ‚ª‚ ‚éB E-mail ‚Ì“ú–{ŒêƒGƒ“ƒR[ƒh‚È‚Ç‚ÉŽg—p‚·‚éB ¡base64_encode Eraw •¶Žš—ñ‚ð raw BASE64 ƒR[ƒh‚ɃGƒ“ƒR[ƒh‚·‚éB rawret := utl_encode.base64_encode(rawpara); | |_ ˆø”(in raw) |_ –ß‚è’l(raw) ¡base64_decode Eraw BASE64 ƒR[ƒh‚©‚ç raw •¶Žš—ñ‚ɃfƒR[ƒh‚·‚éB rawret := utl_encode.base64_decode(rawpara); | |_ ˆø”(in raw) |_ –ß‚è’l(raw) set serveroutput on; declare str varchar2(2000) := '‚ ‚¢‚¤‚¦‚¨'; base64 varchar2(2000); begin -- BASE64 ƒGƒ“ƒR[ƒh base64 := utl_raw.cast_to_varchar2( utl_encode.base64_encode(utl_raw.cast_to_raw(str)) ); -- BASE64 ƒfƒR[ƒh str := utl_raw.cast_to_varchar2( utl_encode.base64_decode(utl_raw.cast_to_raw(base64)) ); dbms_output.put_line ('-- ˆ—Œ‹‰Ê --'); dbms_output.put_line ('BASE64 ƒGƒ“ƒR[ƒh = ' || base64); dbms_output.put_line ('BASE64 ƒfƒR[ƒh = ' || str); end; / -- ˆ—Œ‹‰Ê -- BASE64 ƒGƒ“ƒR[ƒh = gqCCooKkgqaCqA== BASE64 ƒfƒR[ƒh = ‚ ‚¢‚¤‚¦‚¨ ¡UTL_RAW EUTL_RAW ‚É‚ÍAraw Œ^ƒLƒƒƒXƒg‚âƒoƒCƒg‘€ì‚ÌŠÖ”‚ª‚ ‚éB UTL_SMTPAUTL_ENCODE ‚ðŽg‚¤ã‚Å•K—v‚Æ‚È‚éB (Oracle9i - 9.0.1 ‚Å‹@”\Šg’£‚ ‚è) utl_raw.cast_from_binary_integer binary_integer ¨ raw utl_raw.cast_from_number number ¨ raw utl_raw.cast_to_binary_integer raw ¨ binary_integer utl_raw.cast_to_number raw ¨ number utl_raw.cast_to_raw varchar2 ¨ raw utl_raw.cast_to_varchar2 raw ¨ varchar2 utl_raw.concat raw ˜AŒ‹ utl_raw.length raw ƒoƒCƒg’· utl_raw.substr raw ƒoƒCƒgØ‚èo‚µ utl_raw.translate raw ƒoƒCƒg•ÏŠ· utl_raw.transliterate raw ƒoƒCƒg•ÏŠ· utl_raw.overlay raw ƒoƒCƒgƒI[ƒoƒŒƒC utl_raw.copies raw ƒRƒs[ utl_raw.xrange raw ”ÍˆÍ utl_raw.reverse raw ”½“] utl_raw.compare raw ”äŠr utl_raw.convert raw •ÏŠ· utl_raw.bit_and raw ƒrƒbƒg˜_—Ï utl_raw.bit_or raw ƒrƒbƒg˜_—˜a utl_raw.bit_xor raw ƒrƒbƒg”r‘¼˜_—˜a utl_raw.bit_complement raw ƒrƒbƒg•â” Eblob(ƒoƒCƒiƒŠƒ‰[ƒWƒIƒuƒWƒFƒNƒg) €–Ú‚ð SQL*Plus ‚Å•\Ž¦‚·‚邱‚Æ‚Í o—ˆ‚È‚¢B ƒoƒCƒiƒŠƒf[ƒ^‚Å‚Í‚È‚•¶Žš—ñ‚ð blob ‚ɃZƒbƒg‚µ‚ăeƒXƒg‚·‚éꇂÍA utl_raw.cast_to_raw('abc012') ‚ŃZƒbƒg‚µA utl_raw.cast_to_varchar2(€–Ú–¼) ‚Å select ‚·‚ê‚Î SQL*Plus ‚Å‚à•\Ž¦‚͉”\‚Å‚ ‚éB ®AADO ‚Å‚Í GetChunkAActualSize ‚ðAoo4o ‚Å‚Í offsetAPollingAmountA SizeAReadAStatusAORALOB_NEED_DATA ‚щ[ƒWƒIƒuƒWƒFƒNƒg‚ð“Ç‚ÞB ¡cast_to_raw Evarchar2 •¶Žš—ñ‚ð raw •¶Žš—ñ‚ÉŒ^ƒLƒƒƒXƒg‚·‚éB rawret := utl_raw.cast_to_raw(str); | |_ ˆø”(in varchar2) |_ –ß‚è’l(raw) ¡cast_to_varchar2 Eraw •¶Žš—ñ‚ð varchar2 •¶Žš—ñ‚ÉŒ^ƒLƒƒƒXƒg‚·‚éB ret := utl_raw.cast_to_varchar2(rawstr); | |_ ˆø”(in raw) |_ –ß‚è’l(varchar2) declare str varchar2(2000) := '‚ ‚¢‚¤‚¦‚¨'; bin raw(2000); begin -- varchar2 ‚ð raw ‚ÉŒ^ƒLƒƒƒXƒg bin := utl_raw.cast_to_raw(str); -- raw ‚ð varchar2 ‚ÉŒ^ƒLƒƒƒXƒg str := utl_raw.cast_to_varchar2(bin); end; / ¡Oracle PL/SQL •ÒŽ‘—¿
¡SQL Šî‘bŽÀ’n•ÒŽ‘—¿
¡SQL Šî‘b•ÒŽ‘—¿
¡SQL ƒ`ƒ…[ƒjƒ“ƒO•ÒŽ‘—¿
¡PostgreSQL •ÒAJAVA ServletAJSP •ÒŽ‘—¿
¡MySQL •ÒŽ‘—¿