0
I need to give a picture of mine view to the controller, be it just the string with the url or the whole html element, for me it doesn’t matter because I will use to mount a pdf through the mpdf, am using angular and codeigniter and the mpdf is not letting me generate through AJAX request, I am playing the parameters directly in the URL and solving the route through the Routes.php of ci to directly call a function in the controller, to generate the pdf, the problem is that the URL of my image is the one that google generates for png image google Charts, is gigantic and I can’t do playing straight into the URL like the other parameters, someone can help me?
Your text is a bit confusing. Would you like to pass a Base64 to the server and use it there? Another alternative is to fire a form with the image via js.
– David Dias
I think the same idea would be to shorten the image url that google Chart generates, in a dynamic way, I think Base64 would be more laborious not? and the form would not be an option because I need the button to be a link
– Gabriel Becher
The form can be hidden and the shot of it can be the click, all this with js.
– David Dias
In the case of Base64, I never really did so. But honestly, it seems that the best solution is you send via POST even.
– David Dias