06/24/2022, 2:31 PM
Convert Base64 to PNG-File and save on Ktor Backende I need to save an image from the Client App as PNG on the Backend. Im sending the Image as Base64 with Post to the Backend. I cant find a way to convert the Base64 String to an PNG File and dont know, how I could save them as File on the Server. Thats the function I use to get the Data from the client. In val picture I get the Image as Base64. fun savepicture(data: getpicture) = transaction { val userid= data.userid val date = val time =...