axapta - How to upload client file to server? -


i need create form upload file client side server in ax 2012 r3 using x++.

can 1 give me link / example regarding issue?

i try search , find can use class sysfilestoremanager, still confused how use it.

you can find example use of sysfilestoremanager using cross-reference tool. find bit bloated.

you can this:

static client container getpackedfileclient(filename _filenameclient)  {     bindata bindata = new bindata();     bindata.loadfile(_filenameclient);     return bindata.getdata(); } 

this sysfilestoremanager.getpackedfileclient method, without protected keyword.
save file:

static server container savefiletoserver(container _packedfile, filename _filename) {     #file     bindata b = new bindata();     b.setdata(_packedfile);     new fileiopermission(_filename, #io_write).assert();     b.savefile(_filename); } 

this sysfilestoremanager.copyfiletoclient_client adapted general use. can call methods in sequence:

savefiletoserver(getpackedfileclient(clienfilename), serverfilename); 

the file content transferred client server using container.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -