데이터 인코딩(HTML)

[ 이 문서는 Windows 런타임 앱을 작성하는 Windows에서 8.x 및 Windows Phone 8.x 개발자를 대상으로 합니다. Windows 10용으로 개발하는 경우에는 최신 설명서를 참조하세요.]

다음 예제에서는 encodeToBase64String 메서드를 사용하여 버퍼를 base64 문자열로 인코드하는 방법을 보여 줍니다.


function EncodeData( encryptedDataBuffer )
{

    try {

        // Encode a data buffer to a base64 string.
        var base64String = Windows.Security.Cryptography.CryptographicBuffer.encodeToBase64String(encryptedDataBuffer);

    }
    catch ( ) {

        // Handle the error.
    }
}

관련 항목

데이터 디코딩

데이터 인코딩 및 디코딩