Error to use curl to add base64 text convert pdf image multipage


#1

Hi,
My questión is about when I try to add to bash command curl the text base64 pdf multipage image the bash interpreter say:

the arguments list is to loong.

What is wrong?

The line of the curl command is:

/usr/bin/curl -H apikey:7079f5830f88957 --form language=spa --form detectorientation=true --form isCreateSearchablePdf=true --form filetype=pdf --form ‘base64image=data:application/pdf;base64,JVBERi0x…KJSVFT0YK’ https://api.ocr.space/Parse/Image

Can help me?

Kind Regards.


#2

It seems this is a cURL issue. For the solution, please see here: https://unix.stackexchange.com/questions/174350/curl-argument-list-too-long