Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
java.lang.RuntimeException: Could not generate DH keypair
Caused by: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)
to connect and upload a file to a webdav server with talend, here is the quick method in Curl :
syntax : "curl --anyauth --user : password -T <file to upload> -X PUT <target folder>
"curl --anyauth --user abcd@mail.com:1234 -T /Users/MyPC/Documents/PROJECT/OUTPUT/folder/myfile.xml -X PUT https://webdav url"
Example of url webdav : https://myurl/project.demxxx.net/on/demxxxx.servlet/webdav/SitAA/Imxx/upload/filesUpload/
with Context :
"curl --anyauth --user "+context.WebDav_User+":"+context.WebDav_password+" -T "+context.Folder_Project+context.Folder_output+context.Folder_output+context.file_name+"*"+" -X PUT "+context.WebDav_host
** Curl Commands Webdav :
https://www.qed42.com/blog/using-curl-commands-webdav
Hello everyone, this post shows how to send data as content/byte but how can we do if we need to send data as .zip files ?
It depends on the API you are working with how you can send it. But a zip file can be read into a byte array this way.