使用 Google Apps Script 从 FTP 服务器获取图像 [英] fetch images from FTP server using Google Apps Script
问题描述
我需要使用 Google Apps 脚本获取一些存储在 FTP 服务器中的图像
I need to fetch some images that are stored in a FTP server, using Google Apps Script
图片只能通过 FTP 访问
The images are accessible only by FTP as
ftp://user:password@ftpsite.com/path2photos/photo123.jpg
有什么想法吗?
谢谢
推荐答案
无法从 Google Apps Script 发出出站 FTP 请求(App Engine 也有类似的限制).
It's not possible to make outbound FTP requests from Google Apps Script (there is a similar restriction from App Engine as well).
您可以选择找到服务器的 HTTP 接口(某些站点同时提供 HTTP 和 FTP),或者通过 FTP 客户端下载文件,然后上传到 Google Drive,然后从那里访问这些文件.
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.
随时在问题中查找/记录项目跟踪器.
这篇关于使用 Google Apps Script 从 FTP 服务器获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!