teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

内容修正

2021/03/15 02:01

投稿

NakaShun_1129
NakaShun_1129

スコア20

title CHANGED
File without changes
body CHANGED
@@ -28,7 +28,7 @@
28
28
  | JSON key | Type | Size | Required | Format | Note |
29
29
  |:-------------------------------------|:--------|:-----|:---------|:---------------|:----------------------------------------|
30
30
  | name | String | 500 | yes | text | name for the user |
31
- | picture | String | 500 | no | bytea | picture |
31
+ | picture | String | | no | base64 | picture |
32
32
 
33
33
 
34
34
  ## GET users
@@ -50,7 +50,7 @@
50
50
  |:-------------------------------------|:--------|:-----|:---------|:---------------|:----------------------------------------|
51
51
  | id | String | 30 | yes | integer | id |
52
52
  | name | String | 500 | yes | text | name for the user |
53
- | picture | String | 500 | no | base64 | picture |
53
+ | picture | String | | no | base64 | picture |
54
54
 
55
55
 
56
56
 

2

情報追加

2021/03/15 02:01

投稿

NakaShun_1129
NakaShun_1129

スコア20

title CHANGED
File without changes
body CHANGED
@@ -50,4 +50,9 @@
50
50
  |:-------------------------------------|:--------|:-----|:---------|:---------------|:----------------------------------------|
51
51
  | id | String | 30 | yes | integer | id |
52
52
  | name | String | 500 | yes | text | name for the user |
53
- | picture | String | 500 | no | base64 | picture |
53
+ | picture | String | 500 | no | base64 | picture |
54
+
55
+
56
+
57
+ ##
58
+ もしくは、画像自体はS3に保管し、DBにはそのURLのみ保存するのが良いのでしょうか?

1

タグ追加

2021/03/12 10:24

投稿

NakaShun_1129
NakaShun_1129

スコア20

title CHANGED
File without changes
body CHANGED
File without changes