107108109110111112113114115116117118119120
while ((read = is.read(bytes)) != -1) { stream.write(bytes, 0, read); } } catch (Exception e) { return new StatusResponse(e.getMessage()); } finally { if (stream != null) { stream.close(); } } return new StatusResponse("Logo added."); }