Making a picture with byte array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Making a picture with byte array?

What I'm trying to find out is: I'm tryna put a byte [] array with a bunch of numbers to form into kind of an picutre. I want to give certain numbers in the array a letter to be the output in the console app. For example: byte [] array = {32, 32, 67, 45} and as output: C, C, D, U 1) How do I do that? Do I need ASCII somewhere? 2) Also, how can I declare how many letters I want to have displayed in one line?

24th Sep 2021, 7:25 PM
Aleksander Weyand
Aleksander Weyand - avatar
1 Answer
+ 1
Thanks for your reply! Yes, I'm basically trying to make kind of an "artwork" inside the console and it seems like I guessed right with ASCII. And you're talking about nested loops, what about the foreach loop, would it work with it as well? And: Is there anyone who could give me like a quick example?
24th Sep 2021, 10:12 PM
Aleksander Weyand
Aleksander Weyand - avatar