Answer the question
In order to leave comments, you need to log in
Is it possible to mold an image file from the string passed in the request?
From the android client, the file is transferred to the server as a string, on the side of the android application this is done something like this:
InputStream inputStream = getContentResolver().openInputStream(uri);
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
StringBuilder stringBuilder = new StringBuilder();
String line;
while ((line = reader.readLine()) != null) {
stringBuilder.append(line);
}
model.setFileIcon(stringBuilder.toString());
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question