Click here to Skip to main content
15,908,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi !

I am using text files to store my userID's as I am only allowed to do it this way as part of our high school assignment. However I would also like to store images alongside each ID. How can I do this I am struggling with this any ideas :)?
Is This A Good Question/Topic? 0

What I have tried:

I am really struggling and confused on how to approach this
Posted
Updated 15-Dec-17 7:59am
Comments
CoderzF1 15-Dec-17 18:00pm    
try converting the image to a base64 string and store it in the text file. or you could store the text file in a file folder with all images in the same folder except with each image file renamed to the corresponding id.
[no name] 6-Jul-18 11:38am    
I'd agree with the base64 approach. The best way I know of to represent images in text form

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900