I am trying to create a web service that receives data from our school database. The connection service works fine until I try to receive the photos from the datasource.
The images come in as a base64 and I am using the following code to control the post_size:
app.use(express.json({limit: "2000mb"}));
app.use(express.urlencoded({limit: "2000mb", extended: false}));
This is the largest size I have used, just to make sure that data of any size can come in. This is only for testing and once I know the actual size I can adjust it accordingly.
So I have about 700 images that need to come in that are about 1MB each in size - so the 2000mb should be more than enough.
I keep getting the following message in the datasource's logs:
Error: 413 (Request Entity Too Large)
Is there a limit of expressjs, node or JSON that I am not aware off?
Would it be better to write this is PHP and use XML as the accepting format?
I would like to stick with Express and JSON if I can...
Thanks :-)
EDIT: I forgot to mention that I am running all this inside a docker container - maybe the limit is there?