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
could be passed via the input arguments, but keep in mind:
the input argument datatype is to choose and to handle by you - e.g a base64 String to express a binary file
[grafik]
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
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
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
Anil_G
(Anil Gorthi)
May 20, 2024, 12:02pm
9
@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
J0ska
May 20, 2024, 12:03pm
10
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
J0ska
May 20, 2024, 12:19pm
12
Convince client to change expectations
2 Likes
Anil_G
(Anil Gorthi)
May 20, 2024, 12:23pm
13
@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
Anil_G
(Anil Gorthi)
May 21, 2024, 5:42pm
15
@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
postwick
(Paul Ostwick)
May 21, 2024, 7:46pm
16
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.