Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

อ่านรูปจากบัตรประชาชนแล้ว ได้ข้อมูลมาไม่ตรงกับรูปบนบัตร #15

Open
nakharin opened this issue Jul 5, 2018 · 1 comment

Comments

@nakharin
Copy link

nakharin commented Jul 5, 2018

ผม get ByteArray ทั้ง 20 อันมาแล้วครับ นำมา concat กันแล้วแปลงเป็น Base64String ปรากฎว่าได้รูปแบบนี้ออกมาครับ ไม่ทราบว่าเป็นที่อะไรเหรอครับ ถึงไม่ได้รูปที่เหมือนในบัตรประชาชนมา

หลังแปลง Base64String = /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAA0JCgsKCA0LCwsPDg0QFCEVFBISFCgdHhghMCoyMS8qLi00O0tANDhHOS0uQllCR05QVFVUMz9dY1xSYktTVFH/2wBDAQ4PDxQRFCcVFSdRNi42UVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVH/wAARCACyAJQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEIkAAjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkeQAEhJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKj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7y

ได้รูปเหมือนใน Web นี้เลยครับ = http://tools.knowledgewalls.com/onlinebase64stringtoimageconverter

ปล. ผมทำใน Android นะครับโดยใช้เครื่องอ่านรุ่น SCR3310 v2 USB

@NiwatKaewkert
Copy link

@nakharin แก้ได้หรือยังครับ ผมก็ติดปัญหานี้เหมือนกันครับ

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants