Start a Job with file attachments

Start a Job with file attachments , I tried using the base 64 method but it throwing error like below.

Is there any way to attach the files? or any other conversion would help to achieve this?

Also I would required to send a custom response for this Start job API call? Is that possible

Hi @logesh_stc

Please check the thread,I think it helps you

What input type I would choose? I had string as input variable and passed base64 value as string and tried to pass is it in workflow?

@logesh_stc,

You can store the required file on SharedDrive or SharePoint and pass the filename as an argument.

In Initialization you can add the logic to download the file path or filename passed from argument.

Once downloaded, you cand refer the local path of the file to proceed further the bot execution.

Thanks,
Ashok :slight_smile:

Hi @ashokkarale Requirement is , The input coming from API call only, they didn’t accepted other ideas. That’s why.

Ohh…in that case your file size seems higher side. Meanwhile someone help here, @logesh_stc Try checking with UiPath Support team once if they some solution.

Thanks,
Ashok :slight_smile:

Thank you @ashokkarale , I will check with support Team

1 Like

file size is less than 300 kb only, due to conversion the character count of that base64 is getting increased. but I think its accepting only 10000 whereas its count after conversion is 54000 characters

1 Like

@logesh_stc

via api you can try to put it on a storage bucket or sharepoint and then send the details via start job api

cheers

1 Like

How about store the attachment in a bucket and pass to job a reference to bucket as argument?

Cheers

Client expecting they would call only one API which will pass the input as IMG or base 64? @Anil_G @J0ska

Convince client to change expectations :slight_smile:

2 Likes

@logesh_stc

either convince them

or compress the base64 string again and decompress…which includes extra logic

file attachment is not an option

cheers

Tried base 64 conversion but the input string char limit is 10000 and after conversion it returns 50000 char which throws error in start job operation

@logesh_stc

Try compressing the string…may be usign some encoding or so

Or did you try usingn add queue item if that is working add data to wueue and add a wueue trigger so that it gets triggered and value gets added

Cheers

It would be much simpler just to start the job with the path and filename as the argument, and then just have the automation pick up the file based on that information.