Scripting on this page tracks web page traffic, but does not change the content in any way. Use is subject to license terms and the documentation redistribution policy. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.Ĭopyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.Īll rights reserved. 30 format by translating it into a radix-64 representation. 29 Base64 is a encoding scheme that represents binary data in an ASCII string. The process encodes every 6 bits of data into one of the 64 Base64 characters, so the 24-bit input divided by 6 results in 4 Base64 characters. Returns: an equivalent encoder that encodes without adding anyįor further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. 25 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. The input string is 3 bytes, or 24 bits, in size, so the formula correctly predicts the output will be 4 bytes (or 32 bits) long: TWFu. The returned encoder instance should be used for The encoding scheme of this encoder instance is unaffected by The Base64 encoding name is from the mathematical definition of bases. The difference is that base64 encoding uses translation into a radix-64. Parameters: InData an array containing the data bytes to be encoded. getUrlEncoder public static Base64.Encoder getUrlEncoder () Returns a Base64.Encoder that encodes using the URL and Filename safe type base64 encoding scheme. Public Function Base64EncodeString (ByVal s As String) As String Base64EncodeString Base64Encode (ConvertStringToBytes (s)) End Function Encodes a byte array into Base64 format. It is similar to binary-to-text encoding in that it represents binary data in an ASCII string. Method Detail getEncoder public static Base64.Encoder getEncoder () Returns a Base64.Encoder that encodes using the Basic type base64 encoding scheme. Returns an encoder instance that encodes equivalently to this one,īut without adding any padding character at the end of the encoded Base64 is an addition to encoding schemes.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |