diff --git a/src/main/java/org/ntlab/acanthus_server/resources/gallery/GalleryRest.java b/src/main/java/org/ntlab/acanthus_server/resources/gallery/GalleryRest.java index 9eebe5a..3e31bad 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/gallery/GalleryRest.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/gallery/GalleryRest.java @@ -5,6 +5,10 @@ import org.ntlab.acanthus_server.entities.AnimationJson; import org.ntlab.acanthus_server.models.Accounts; import org.ntlab.acanthus_server.models.Gallery; +import org.ntlab.acanthus_server.utils.Base64Decode; +import org.springframework.beans.BeansException; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; import javax.ws.rs.*; @@ -12,14 +16,21 @@ import javax.ws.rs.core.Response; //import java.security.acl.Owner; +import java.io.IOException; import java.util.*; @Component @Path("/gallery") -public class GalleryRest { +public class GalleryRest implements ApplicationContextAware { private Gallery gallery = Gallery.getInstance(); + private ApplicationContext applicationContext; + + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { + this.applicationContext = applicationContext; + } + @GET @Produces(MediaType.APPLICATION_JSON) @@ -72,7 +83,27 @@ else { Accounts accounts = Accounts.getInstance(); Account Owner = accounts.getAccountByUid(uid); - return gallery.createAnimation(animationName, Owner); + + //aidを発行 + int aid = gallery.createAnimation(animationName, Owner); + + //1ページ目に白紙画像を入れる。 + String path1 = ""; + String path = ""; + String image= "iVBORw0KGgoAAAANSUhEUgAABGoAAAc+CAYAAAC2QMN6AAAABHNCSVQICAgIfAhkiAAAAAFzUkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAxC0lEQVR4XuzYsQEAEADAMPz/MwY/6JAs/aFzXwMAAACA79YrAAAAAJ8ZNQAAAAARRg0AAABAhFEDAAAAEGHUAAAAAEQYNQAAAAARRg0AAABAhFEDAAAAEGHUAAAAAEQYNQAAAAARRg0AAABAhFEDAAAAEGHUAAAAAEQYNQAAA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1NXZADAAAAIAIUQMAAAAQIWoAAAAAIkQNAAAAQISoAQAAAIgQNQAAAAARogYAAAAgQtQAAAAARIgaAAAAgAhRAwAAABAhagAAAAAiRA0AAABAhKgBAAAAiBA1AAAAABGiBgAAACBC1AAAAABEiBoAAACACFEDAAAAECFqAAAAACJEDQAAAECEqAEAAACIEDUAAAAAEaIGAAAAIELUAAAAAESIGgAAAIAIUQMAAAAQIWoAAAAAIkQNAAAAQISoAQAAAIgQNQAAAAARogYAAAAgQtQAAAAARIgaAAAAgAhRAwAAAJCwHVwlEnh/6TK9AAAAAElFTkSuQmCC"; + try { + path1 = applicationContext.getResource("file:").getFile().getAbsolutePath() +"/apache-tomcat-9.0.10"+ "/webapps"; + System.out.println("0"+ path1.toString()); + System.out.println("!!!クライアントから届いたBASE64の文字列!!!:"+image.toString()); + path = Base64Decode.saveAsFile(aid, 1, path1, image); + + } catch (IOException e) { + e.printStackTrace(); + throw new WebApplicationException(500); + } + + //発行したaidを返す + return aid; } }