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
Hello, Kindly please report the bug so that we can further investigate and resolve it. Thank you. Best regards, Benjamin...
11:31 3 May 2024
Hi, No changes should have been made that would increase client's HDB file. Please try to delete HANSA.HDB from client folder and reconnect to server and check if it will grow to 30MB again. ...
10:14 30 Apr 2024