使用Google Apps脚本从FTP服务器获取图像 [英] fetch images from FTP server using Google Apps Script

查看:87
本文介绍了使用Google Apps脚本从FTP服务器获取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆