File to Base64 with Kastri TFilesSelector [closed]


I want to allow the user to select a file on his mobile device. Since TOpenDialog is for PC only, I use the library Kastri. But TFilesSelector returns the filenames selected by the user like this:

How I can

Get the real filename (ex: "test.pdf")?
Get the content as TStream to convert it to Base64 and then upload it to the server?

Comments are closed.