Sending BASE 64 files to Web Service

611 views
Skip to first unread message

juan.g...@opensky.com.co

unread,
Nov 4, 2016, 1:35:19 PM11/4/16
to Fujitsu RunMyProcess Developer Community
Hi guys,

FIRST:

I have a connector which sends files to a web service called Orfeo, when the file is uploaded, Orfeo returns me an id. As you can see in image_1, the connector converts the file to BASE 64 (BASE 64 is the only way supported by Orfeo). When I send a txt file, it works fine. But when I try to send a 1.0 mb pdf of an scanned document like a contract, I get the error of image_2.

I tried converting the file to BASE 64 before launching the connector, then passing the sring variable to make it easier for the execution, but I got the same issue.

Any advice?

SECOND:

I need to create a CAPI to be accessed by a third party. The CAPI must return various pdf files with a requests reports. Which is the best way to send these pdf's? converted to BASE 64?


Thanks!

image_1.PNG
image_2.PNG

juan.g...@opensky.com.co

unread,
Nov 4, 2016, 1:40:02 PM11/4/16
to Fujitsu RunMyProcess Developer Community, juan.g...@opensky.com.co
I forgot to mention that Orfeo supports maximum 5mb files.

Pankaj Kumar

unread,
Nov 5, 2016, 4:20:31 PM11/5/16
to Fujitsu RunMyProcess Developer Community, juan.g...@opensky.com.co
Hi Juan,

In my understanding, you need to pass the base-64 encoded string of whole pdf file not the content of the pdf file as encoded string have the MIME type info i.e (mime type: application/pdf; charset=binary) in order to decode it back to pdf file. Currently this type of functionality is not supported in RunMyProcess, you may need to do it through external application or programming language like java API or any online base-64 encode/decode website that support pdf file (example:- http://base64converter.com/).

Once you get the base-64 encoded string, you can save it in RunMyProcess and use it in connector.




Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/d66e04cc-b0eb-46cb-a2be-b9c06254880a%40runmyprocess.com.

Message has been deleted

juan.g...@opensky.com.co

unread,
Nov 5, 2016, 8:36:31 PM11/5/16
to Fujitsu RunMyProcess Developer Community, juan.g...@opensky.com.co
Hi Pankaj,

I have been able to succesfully upload pdf files in Orfeo through this connector.

It works for pdf files --> ${file_content(archivo_adjunto,'BASE64')}

For example I uploaded a 90KB pdf with no problem. I'm facing the problem with 1MB pdf files.

Pankaj Kumar

unread,
Nov 6, 2016, 5:56:20 AM11/6/16
to Fujitsu RunMyProcess Developer Community
Hi Juan,

You are getting error "408 REQUEST TIMEOUT" on PDF file size greater than 1 Mb approximately as you are able to upload PDF file of small size.

Please share your connector details and steps to implement (with screen-print) so that I can make some test on this scenario. You can directly mail your connector configuration to me (pku...@runmyprocess.com)

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

juan.g...@opensky.com.co

unread,
Nov 8, 2016, 8:55:58 AM11/8/16
to Fujitsu RunMyProcess Developer Community
Hi Pankaj,

I just sent you my connector configuration.

Thanks for your help.

Pankaj Kumar

unread,
Nov 13, 2016, 6:22:05 AM11/13/16
to Fujitsu RunMyProcess Developer Community
Hi Juan,

Since you are able to send small size pdf file, this issue is related to size of generated base 64 string of pdf file of greater size. Please check the size (roughly no. of character to get an idea of how many byte required to, this can be known by a simple program in java or other in other language ) of generated base 64 string of pdf file. It might possible generated string required size greater than 5 Mb due to which connector is not running successfully.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
Reply all
Reply to author
Forward
0 new messages