This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

email with attachement gives image size 0
#4
You already have a function for HTTP requests, just get your snapshot by calling cmdFoscam and then pass the result like this:
Code:
local snapshot = cmdFoscam(...)
local attachment = ltn12.source.chain( ltn12.source.string(snapshot), ltn12.filter.chain(mime.encode('base64'), mime.wrap()) )
Reply


Messages In This Thread
RE: email with attachement gives image size 0 - by admin - 26.10.2017, 10:15

Forum Jump: