มันเป็น byte array อยู่แล้วแค่ write ทั้งหมดลงไฟล์นามสกุล .jpg ก็ได้แล้วครับ
ตัวอย่าง Code C# ผมลองเขียนแปลงข้อมูลที่แปะให้ดูได้เป็นรูปผู้หญิงสูง 160
ตัวอย่าง Code C# ผมลองเขียนแปลงข้อมูลที่แปะให้ดูได้เป็นรูปผู้หญิงสูง 160
Code Select
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
string filePath = "data.txt";
var data = File.ReadAllText(filePath);
var filterData = data.Split(' ')
.Select(x => x.Trim())
.Where(x => x != "")
.ToList();
var bytesData = new byte[filterData.Count];
for(int i=0; i< filterData.Count; i++)
{
bytesData[i] = Byte.Parse(filterData[i], System.Globalization.NumberStyles.HexNumber);
}
File.WriteAllBytes("test.jpg", bytesData);
Console.WriteLine("End");
Console.ReadLine();
}
}
}