You can't print the contents of a png file to the console, it's a binary file - different from a certificate file, which contains the certificate MIME-encoded and thus is a regular text file. A printable file i. A binary file may contain any byte in any order. So, two things will happen when you try to print it: a it'll stop at the first 0x00 byte found; b every byte containing a non-ASCII character will be printed as a special char if it's in the code page active for the console , or nothing at all, and bytes that contain ASCII formatting chars will be "executed" as if they were actual formatting in a text file.
To have what you expect, the first thing is to define exactly what it is. Do you want to see the png contents MIME-encoded? Then you should use a MIME-encoding routine like this. Or do you want to print the hex value of each byte? Also for the certificate file you should open as a text file, not binary. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 9 years, 9 months ago.
Active 7 years, 10 months ago. Viewed times. Any suggestions what's wrong? Chris Chris 2, 5 5 gold badges 33 33 silver badges 62 62 bronze badges. Add a comment. Active Oldest Votes. Ylisar Ylisar 4, 19 19 silver badges 25 25 bronze badges. Structured data Items portrayed in this file depicts. Wikimedia username : Blueboy Creative Commons Attribution-ShareAlike 3.
Categories : Edgeworth box diagrams Diagrams in Persian. Namespaces File Discussion. Views View Edit History. Main page Welcome Community portal Village pump Help center. Rainbow Clipart - wildlife. Cartoon Rainbow - mounted. Rainbow Clipart - others. Fish Cartoon - fish. Fishing Cartoon - fish. Rainbow Cartoon - fish jumping.
Rainbow Cartoon - Fishing. Rainbow Clipart - fish. Fishing Cartoon - Fishing. Fish Cartoon - cukur bubble.
0コメント