source: trip-planner/src/main/java/finki/diplomska/tripplanner/models/ImageUtil.java

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 217 bytes
Line 
1package finki.diplomska.tripplanner.models;
2
3import java.util.Base64;
4
5public class ImageUtil {
6 public String getImgData(byte[] byteData) {
7 return Base64.getMimeEncoder().encodeToString(byteData);
8 }
9}
Note: See TracBrowser for help on using the repository browser.