Re: WebShop File Upload
Lee D Papworth
5-5-20
Hi Zilvinas

I couldn't get this to work. In the end I had to come up with another solution.

I encode the image using html and JavaScript utilising readAsDataURL then upload to the server.

Once there I use the hal primitive AreaBase64Decode to translate it back into an image file and attach it to the record

fname = "tmp/" & uploadfilename;
AreaBase64Decode(wArea,wImageArea);
WriteAreaToFile(wImageArea,fname,0);

RecordLinkFile(fname,0,PRr,CurrentCompany);


Regards

Lee
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Reino Botha
Please check your version of android if it is the same as the server you are connecting too. ...
08:24 21 Nov 2024
Bror-Erik Kotiranta
In NC you hace operations>>ai chats. They are used for these Br, Bror-Erik...
05:12 21 Nov 2024