使用Google Apps脚本从FTP服务器获取图像 [英] fetch images from FTP server using Google Apps Script
问题描述
我需要使用Google Apps脚本获取存储在FTP服务器中的一些图像
图像只能通过FTP访问
ftp:// user:password@ftpsite.com/path2photos/photo123.jpg
有什么想法?
谢谢
无法从Google Apps脚本发出出站FTP请求(App Engine也有类似的限制)。
您可以选择寻找服务器的HTTP接口(有些网站同时提供HTTP和FTP),或者通过FTP客户端下载文件,然后上传到Google云端硬盘,然后从那里访问这些文件。
随时在 Issue Tracker 。
I need to fetch some images that are stored in a FTP server, using Google Apps Script
The images are accessible only by FTP as
ftp://user:password@ftpsite.com/path2photos/photo123.jpg
Any ideas?
Thanks
It's not possible to make outbound FTP requests from Google Apps Script (there is a similar restriction from App Engine as well).
You are options are either to find an HTTP interface to the server (some sites offer both HTTP and FTP), or download the files through an FTP client and then upload to Google Drive and then access those files from there.
Feel free to look for/log an item in the Issue Tracker.
这篇关于使用Google Apps脚本从FTP服务器获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!