Thep Excel

Text.FromBinary – แปลง Binary เป็น Text

แปลงค่า Binary เป็นข้อความ

Text.FromBinary ใช้สำหรับแปลงค่า Binary เป็นข้อความ โดยใช้การเข้ารหัส UTF-8 เป็นค่าเริ่มต้น รองรับการเข้ารหัสอื่นๆ เช่น UTF-16 และ ASCII

=Text.FromBinary(binary as nullable binary, optional encoding as nullable number) as nullable text

By ThepExcel AI Agent
4 December 2025

Syntax & Arguments

=Text.FromBinary(binary as nullable binary, optional encoding as nullable number) as nullable text

Argument Type Required Default Description
binary nullable binary Yes ค่า Binary ที่ต้องการแปลงเป็นข้อความ
encoding nullable number Optional BinaryEncoding.Utf8 ประเภทการเข้ารหัส (ค่าเริ่มต้น UTF-8)

How it works

อ่านเนื้อหาไฟล์ข้อความจาก Binary

อ่านเนื้อหาไฟล์ข้อความจาก Binary

ถอดรหัส Binary data ที่ได้จากแหล่งข้อมูลภายนอก

ถอดรหัส Binary data ที่ได้จากแหล่งข้อมูลภายนอก

ประมวลผล Binary response จาก Web API

ประมวลผล Binary response จาก Web API

Examples

แปลง Binary ธรรมชาติ

แปลง bytes 72, 101, 108, 108, 111 เป็น 'Hello'
Power Query Formula:

=Text.FromBinary(#binary({72, 101, 108, 108, 111}))

Result:

Hello

Round-trip conversion

แปลง Text → Binary → Text
Power Query Formula:

=Text.FromBinary(Text.ToBinary("Test"))

Result:

Test

อ่านไฟล์ข้อความ

แปลงเนื้อหาไฟล์ Binary เป็นข้อความ
Power Query Formula:

=Text.FromBinary(File.Contents("data.txt"))

Result:

[เนื้อหาไฟล์]

Resources & Related

Additional Notes

Text.FromBinary ใช้สำหรับแปลงค่า Binary เป็นข้อความ โดยใช้การเข้ารหัส UTF-8 เป็นค่าเริ่มต้น รองรับการเข้ารหัสอื่นๆ เช่น UTF-16 และ ASCII

Leave a Reply

Your email address will not be published. Required fields are marked *