Has anyone figured out a way to do this yet? And would like to share the knowledge?
This doesn't work:
TestDoc.Doc=URL_CONTENTS( 'http://www.pdf995.com/samples/pdf.pdf')
nor
IMPORT DOCUMENT TestDoc.Doc FROM 'http://www.pdf995.com/samples/pdf.pdf'
Import Document from URL
Import Document from URL
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Re: Import Document from URL
Use curl
Download the file
Then import
Should be easy
Download the file
Then import
Should be easy
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: Import Document from URL
so you have to...
1. prepare a bash script with a CURL statement in it (ie export a file using Aware rules)
2. use EXECUTE PROGRAM to execute the bash script
3. not get any return/confirm back to AwareIM because EXECUTE PROGRAM doesn't return anything
4. have a rule to IMPORT DOCUMENT which may not work based on 3. above
"Should be easy" ... seems pretty convoluted to me?
I reckon a built in AwareIM function would be a nice addition (hint hint Aware support) ... and also another to URL_ENCODE would be super useful too.
1. prepare a bash script with a CURL statement in it (ie export a file using Aware rules)
2. use EXECUTE PROGRAM to execute the bash script
3. not get any return/confirm back to AwareIM because EXECUTE PROGRAM doesn't return anything
4. have a rule to IMPORT DOCUMENT which may not work based on 3. above
"Should be easy" ... seems pretty convoluted to me?
I reckon a built in AwareIM function would be a nice addition (hint hint Aware support) ... and also another to URL_ENCODE would be super useful too.
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Re: Import Document from URL
I use this extensively on local files, haven't tried it on a remote url though. I think it's looking to return text contents only, maybe the pdf content is the problem.
example:
DeviceOutput.OutputString=URL_CONTENTS('file:///C:/DeviceOutput/<<DeviceOutput.ID>>.txt')
example:
DeviceOutput.OutputString=URL_CONTENTS('file:///C:/DeviceOutput/<<DeviceOutput.ID>>.txt')
Re: Import Document from URL
Ding ding!
Readme2460.txt 2018-06-05 13:44 36
Improvements:
1. DOWNLOAD DOCUMENT action
Readme2460.txt 2018-06-05 13:44 36
Improvements:
1. DOWNLOAD DOCUMENT action
Avid Linux user....
Re: Import Document from URL
Oh that's exciting... what does it do? is it from a URL?
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Re: Import Document from URL
Did anyone figure out what this action does?intra wrote:Ding ding!
Readme2460.txt 2018-06-05 13:44 36
Improvements:
1. DOWNLOAD DOCUMENT action
Henrik (V8 Developer Ed. - Windows)
Re: Import Document from URL
Very sadly this doesn't import a document from a URL, it does this:
"Download the specified document to the Operators machine"
"Download the specified document to the Operators machine"
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Re: Import Document from URL
Going from download to operators machine to server can't be difficult to solve? (e.g via parameter so either to operator or server machine). Hoping support can further develop this function.RLJB wrote:Very sadly this doesn't import a document from a URL, it does this:
"Download the specified document to the Operators machine"
Henrik (V8 Developer Ed. - Windows)
Re: Import Document from URL
3 years later and still need a solution...
Anyone know how to download/import a file from a URL using aware rules?
Something like:
IMPORT DOCUMENT TestDoc.Doc FROM 'http://www.pdf995.com/samples/pdf.pdf'
Anyone know how to download/import a file from a URL using aware rules?
Something like:
IMPORT DOCUMENT TestDoc.Doc FROM 'http://www.pdf995.com/samples/pdf.pdf'
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Re: Import Document from URL
Would you be interested in a java plug-in that DOWNLOADS and IMPORTS a file from an URL?
Bob
Re: Import Document from URL
Hey Bob... at this stage, not yet, I'm busy torturing myself with a new method and I'm eagerly awaiting the storing of Docs in S3 in the next release as it might work better for us anyway.
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Re: Import Document from URL
This can´t be that difficult to solve so hoping support can include it in an upcoming version as it would be a very useful feature.
Henrik (V8 Developer Ed. - Windows)
-
- Posts: 2405
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: Import Document from URL
I haven't tried this but, just wondering if could it be done in javascript?
For example.....
Replacing url and file names with tags?
For example.....
Code: Select all
const downloadLink = document.createElement('a');
downloadLink.href = 'http://www.mydomain.com/samples/mypdf.pdf';
downloadLink.download = 'mypdf.pdf';
downloadLink.textContent = 'Download PDF';
document.body.appendChild(downloadLink);
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....