I'm using eb.signature, but can't seem to store the signature as an image.
Currently, I'm having to run a very crude script to save the data as a text file
1. stringify the capture as json
2. split the huge string into 10 hidden text form fields and pass to next page (otherwise too big to pass)
3. concatenate the string back together and save as a text file
It'd be much simpler to successfully FTP a png image to the server, but can't find much documentation on how this is done. The small amount of explanations I've found are very vague
Any help, or sample scripts would be great, thanks
Please take a look at this sample: http://techdocs.zebra.com/enterprise-browser/samples/signature/SignatureCommAPI.html . It looks like that sample will capture the sample as an image on the device and display the URI of that captured image on the application UI. You should then be able to use the fileTransfer API to FTP the image to a remote location.
Points: 0
You voted ‘up’
Thanks. Yes, I've been through that many times, (lost several days work in fact!) but cannot seem to get it working. My FTP works fine, but can't seem to get the actual image there. I was wondering if anyone had actually got this working and if they had a sample script for me to look at at the documentation seems very vague.
There's a nice sample script to get the signature panel working, and stringify the capture to JSON, but no samples to give you guidelines as to what to do with it thereafter
Thanks
Points: 0
You voted ‘up’
I do not have any sample scripts I'm afraid, perhaps can help with this.
Assuming you have the signature stored as a file on the device, after capture, I would recommend using the FileTransfer module to transfer this file to an FTP server: FileTransfer Module - Zebra Technologies TechDocs . The default File API available in EB (RhoFile - Zebra Technologies TechDocs ) does not have this capability.
Points: 0
You voted ‘up’
Chris,
This seems to work using the original Pocket Browser SignatureCapture API - the attached test page will capture a signature and FTP it to an internet server as a BMP file .
Points: 0
You voted ‘up’
Hi Ian
Thanks for replying. I don't see an attached test page ?
Points: 0
You voted ‘up’
Should be a link visible underneath the text of my reply - are you using Chrome to access this website ?
Points: 0
You voted ‘up’
Nothing there. I'm using Firefox
Points: 0
You voted ‘up’
Tried Chrome just now. Nothing there either?!?
Points: 0
You voted ‘up’
Strange - anyway I have posted the file at the link below for direct access :
http://moto.airsetup.com/2018/eb/SignaturePB.html
Points: 0
You voted ‘up’
Do you still need help?
Regards
Joydeep
Points: 0
You voted ‘up’
Log in to post comments