Search found 4 matches

by coret
04 Nov 2019 20:27
Forum: Plugin Technical Support & Development
Topic: LUA: howto upload binary file
Replies: 9
Views: 6411

Re: LUA: howto upload binary file

Unfortunally, the contents = contents:gsub("%z","%%00") suggestion didn't work. That is, the entire file was now transmitted, but where there should be a null-byte there was a %00 characters (3 bytes), which made the binary transmitted file invalid... Another hack I can think of ...
by coret
04 Nov 2019 14:44
Forum: Plugin Technical Support & Development
Topic: LUA: howto upload binary file
Replies: 9
Views: 6411

Re: LUA: howto upload binary file

It looks like https://www.genealogieonline.nl/en/ needs a Login so eventually you may need the LuaSec library. ... Having said all that, if the objective is to upload a GEDCOM file to Genealogy Online then why do you need a Plugin, as there is a simple manual upload option (which I have just used)?...
by coret
03 Nov 2019 22:29
Forum: Plugin Technical Support & Development
Topic: LUA: howto upload binary file
Replies: 9
Views: 6411

Re: LUA: howto upload binary file

Hi Mike, Unfortunately the luacom library only supports http and not the https protocol. That's not my experience so far?! Calling the Genealogie Online Publish API (without the file-upload part), works just fine. As I see it, this is not the achievement of luacom, but the winhttp.winhttprequest.5.1...
by coret
03 Nov 2019 19:07
Forum: Plugin Technical Support & Development
Topic: LUA: howto upload binary file
Replies: 9
Views: 6411

LUA: howto upload binary file

Hi, I'd like to make a plugin for Family Historian which uses the Genealogie Online Publication API. This basically is a HTTP request (POST) with file upload. But I can't get the file upload to work properly. Here's the code: require 'luacom' local http = luacom.CreateObject("winhttp.winhttpreq...