public static void takephoto(String image) {
String[] imageData = image.split(",");
try {
byte[] imageBytes = Base64.decode(imageData[imageData.length-1]);
String key = GAEFileService.createFile(MimeTypes.getContentType("me-"+System.currentTimeMillis()), "me-"+System.currentTimeMillis(),imageBytes);
User currentUser = getCurrentUser();
Photo photo = new Photo();
photo.filename = "me-"+System.currentTimeMillis();
photo.owner = currentUser;
response.status = StatusCode.CREATED;
Map map = new HashMap();