6 lines
189 B
Bash
6 lines
189 B
Bash
IMAGE_BASE64=$(base64 image.png | tr -d '\n')
|
|
|
|
curl -X POST http://localhost:3000/api/pengaduan/upload-base64 \
|
|
-H "Content-Type: application/json" \
|
|
-d "{\"file\": \"$IMAGE_BASE64\"}"
|