|
| wb19+: zip before by using wb upload/download control |
| Iniciado por guest, 06,may. 2015 06:03 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 06,mayo 2015 - 06:03 |
Hi All
JavaScript can do zip then upload/download to the site as I couldn't find any wb upload/download control that has a zip function.
If there isn't any till wb20, then hopefully wb21 can make it happen.
Cheers
King |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,mayo 2015 - 17:03 |
Hi King,
You can Zip in Java, then upload with Java to you website. On the website you can receive the file then unzip it.
For the sending of the file you can make yourself a very simple AWP page that does so (or a full-fledged WebService). We exchange data like so. We also use the FTP solution in one instance.
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 12,mayo 2015 - 03:42 |
Hi Alexandre
It'd be nice if you can provide some sample links or examples so that I could give it a try.
Thx in advance!
Cheers
King |
| |
| |
| | | |
|
| | |
| |
| Publicado el 12,mayo 2015 - 15:15 |
Hi King,
In your AWP page simply use PageParameter("filename") and PageParameter("filecontent") in the initialization section. In WinDev simply call your page sending an HTTP form (so to be able to send huge files):
sName is string = "upload_form" HTTPCreateForm(sName) HTTPAddParameter(sName,"filename","my.zip") HTTPAddParameter(sName,"filecontent",fLoadBuffer("c:\path\ o\my.zip")) // add other param as you wish, validation, etc. IF HTTPSendForm(sName,"<a class="ExternalLink" rel="nofollow" target="_blank" href="http://www.yoursite.com/US/your_uploader_page.awp">http://www.yoursite.com/US/your_uploader_page.awp</a>") THEN RESULT True ELSE RESULT False // Do anything you want, display error message END You may want to crypt your data unless you are using an HTTPS server.
The other way is to create a procedure in new "Set of procedures" and make this procedure a WebService (create a new webservice project configuration with this Set of procedures only and push the webservice on your website). Then you can use the procedure (once imported from your website in your WinDev project) as a simple procedure.
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,mayo 2015 - 03:23 |
Cool and yet simple indeed.
Thx Alexandre
Cheers
King <img src="/NG2013_WEB/ui/smiley/1.gif" align=absmiddle border=0 alt=":)"> |
| |
| |
| | | |
|
| | | | |
| | |
|