Skip to content

Commit d84e919

Browse files
committed
move into javaai dir, add k8s and dockerfile and basicauth
1 parent 5484f58 commit d84e919

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

java-ai/src/main/java/oracleai/UploadDownloadImage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ public String uploadimageandvideo(@RequestParam("image") MultipartFile file, Mod
5555
file.transferTo(path);
5656
String fbxUrl = ORDSCalls.convertImage("http://129.80.168.144/transferimage/images/" +
5757
file.getOriginalFilename());
58-
String html = "<a href=\""+fbxUrl+"\">Click here for your FBX 3D model is here.</a>";
59-
model.addAttribute("results", html);
60-
return "resultspage";
58+
model.addAttribute("resultlink", fbxUrl);
59+
model.addAttribute("resulttext", "Click here for your FBX 3D model");
60+
return "resultswithlinkpage";
6161
// return ResponseEntity.ok(
6262
// ORDSCalls.convertImage("http://129.80.168.144/transferimage/images/" + file.getOriginalFilename())
6363
// );
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en" xmlns:th="http://www.thymeleaf.org">
4+
<head>
5+
<title>Oracle AI</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta charset="utf-8">
8+
<script>
9+
fetch('/sidebar.html')
10+
.then(response => response.text())
11+
.then(data => {
12+
document.getElementById('content').innerHTML = data;
13+
});
14+
</script>
15+
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
16+
</head>
17+
<body>
18+
<div class="w3-sidebar w3-light-grey w3-bar-block" style="width:25%">
19+
<h3 class="w3-bar-item">Labs</h3>
20+
<div id="content"></div>
21+
</div>
22+
<div style="margin-left:25%">
23+
24+
<div class="w3-container w3-blue">
25+
<h2>Develop with Oracle AI Services and Oracle Database</h2>
26+
</div>
27+
28+
<div class="w3-container">
29+
<a th:href="@{${resultlink}}" th:text="${resulttext}">Click here</a>
30+
</div>
31+
32+
</div>
33+
34+
</body>
35+
</html>

0 commit comments

Comments
 (0)