Thanks so much! @jan_blaha
Posts made by Brad Filip
-
RE: Inserting Image in xlsx sheet
Hi @bjrmatos would you be willing to share an example of the part where you mention fetching the images in beforeRender? I am trying to download an image from a url and then add it to the data object as base64 after its successful, but I am not totally familiar with node, so below is my attempt at making that happen.
async function beforeRender(req, res) { // merge in some values for later use in engine // and preserve other values which are already in req.data = Object.assign({}, req.data, {test_image: ""}) request.get('MY PUBLIC IMAGE URL', function (error, response, body) { if (!error && response.statusCode == 200) { data = "data:" + response.headers["content-type"] + ";base64," + Buffer.from(body).toString('base64'); req.data.test_image = data; } }); }
-
RE: 413 request entity too large
Not running the report, just trying to click 'save' after uploading an XLS template to use. I am able to run the report ok. However, since I am unable to actually save it with the file uploaded you probably wont be able to see the template file in the account. I can email it to you if you would like?
Here is the template - https://varro.jsreportonline.net/studio/xlsxTemplates/BO6iY9G
-
RE: 413 request entity too large
Ok thanks! The part that I'm looking clarity on is that my file is only 206KB, so the file size itself seems to be fine.
Is there maybe something that happens after the fact where it sends the raw data from the file (uncompressed) a different way to where it's not visible by the user perhaps what the size of the body of the entity itself is?
-
RE: 413 request entity too large
Thanks for the reply - I am actually just using the studio in my cloud account, but here is what it says in the about part for the version. Basically when I tried to click save or saveall from the top menu, it attempts to save and then a modal pops up with the error "413 request entity too large", it said it was coming from
jsreportonline version: 1.0.2
jsreport version: 2.4.0 -
413 request entity too large
Hi - I am running a report in the studio with an XLSX template that is around 206 KB and when I try to save the changes it spits back an error that says "413 request entity too large". The template file size seems to be what I would think is on the smaller size at 206kb, however there are some complexities inside of it.
I am trying to understand what the limitations on a template file may be as it seems the actual file size itself should be ok?