How do I get the data of the file instead of the path?
I used Directory.GetFile()
and it returns the path of the file.
Now what I want is to convert the file(not the path) into base64. I know how to convert it to base64 but what I want to know is how do I get the data of the file.
Any idea? Sorry I'm new to c#
I dont know if data
is the right terminology here :)