@FormDataParam("imagen") InputStream in,
@FormDataParam("imagen") FormDataContentDisposition fileDetail) {
if (!login.equals(sc.getUserPrincipal().getName()))
return Response.status(Response.Status.FORBIDDEN).build();
IImagenService imagenService = ImagenService.getInstance();
imagenService.guardaFotoYThumbnail(in, IImagenService.PROFILE_FOLDER, login, IImagenService.THUMB_PROFILE_WIDTH);
URI uri = uriInfo.getAbsolutePath();
return Response.created(uri).build();
}
@GET