相关文章
更多最近更新
更多jsp程序在服务器上运行,如何将本地文件上传到ftp上
2019-03-25 13:51|来源: 网路
jsp程序在服务器上运行,如何将本地文件上传到ftp上
jsp页面传过去String fileString 应该不行的,它会执行服务器的那个地址,可能会报错
我感觉应该穿过去一个File file 文件的吧,不知道如何实现, 一般的网页都是如何实现的呢?
有些迷茫,忘爱好者给指点下!
jsp页面传过去String fileString 应该不行的,它会执行服务器的那个地址,可能会报错
我感觉应该穿过去一个File file 文件的吧,不知道如何实现, 一般的网页都是如何实现的呢?
有些迷茫,忘爱好者给指点下!
相关问答
更多-
jsp页面显示上传到tomcat服务器的图片[2021-10-10]
没有显示图片 就是路径不对 你先获取从项目的根目录 然后再获取图片所在路径 这是我取tomcat服务端图片文件夹的方法 用的是servlet this.getServletContext().getRealPath("uploadFile"); //( "uploadFile" 是放图片的文件夹) -
如何将图像上传到Android应用程序中的FTP服务器?(How do you upload images to an FTP server within an Android app?)[2023-04-24]
使用它对我来说工作正常... SimpleFTP ftp = new SimpleFTP(); // Connect to an FTP server on port 21. ftp.connect("server address", 21, "username", "pwd"); // Set binary mode. ftp.bin(); ... -
文件不会上传到ftp服务器(File won't upload to ftp server)[2022-08-30]
我注意到您连接的FTP服务器使用的是非标准端口,因此可能没有建立连接。 您需要在ftp_connect中指定端口,如下所示: $ftp_server="174.34.132.106"; $ftp_port = "27015"; $ftp_user_name="username"; $ftp_user_pass="password"; $remote_file = "tf/addons/sourcemod/configs/tf2items.weapons.txt"; $file = "weapons/tf2i ... -
Mercurial FTP扩展应该为你做这个,虽然我自己没有尝试过。 There is a 'backup' program called SyncBack that does this. You can find out more about it here: http://www.2brightsparks.com
-
FTP可能是个不错的选择
空文件上传到ftp服务器(Empty file uploaded to ftp server)[2022-12-16]
我假设它是第二个文件结束为空。 您应该为第二次更新重新创建inputStream(根据DRCB的注释),否则它将为空(它将在第一次上载时用完)。 I assume it's the second file that ends up empty. You should recreate the inputStream for the second update (per DRCB's comment), otherwise it will be empty (it'll have got used up by ...处理请求。 获取文件名并创建一个新文件。 我自己的代码: def f = request.getFile('myfile'); def webrootDir = servletContext.getRealPath("/"); //app directory File fileDest = new File(webrootDir,"xmls/"); def xmlFile = new File(fileDest, "settings.xml"); f.transferTo(xmlFile); 只需 ...JavaScript可以获取文件上传到FTP服务器的日期吗?(Can JavaScript get the date when a file was uploaded to an FTP server?)[2022-04-27]
查询lastModified将为您提供HTTP服务器为页面提供的任何时间。 这是对应于服务器上的源文件,还是从其他资源检索,或者甚至是动态计算,完全取决于Web服务器及其配置。 Querying lastModified will give you whatever time the HTTP server provided for the page. Whether that corresponds to a source file on the server, or whether it is retr ...这不适合使用频道,即通过Websockets与用户的浏览器进行交互。 你可能不需要任何复杂的东西。 最简单的事情是每隔几分钟就会执行一次cron作业,它会运行Django命令来检查FTP目录并根据需要触发操作。 This wouldn't be an appropriate use of channels, which is about interaction via Websockets with the user's browser. You probably don't need anything c ...你可以看看苹果项目SimpleFTPSample 你可以找到一个包含代码的完整项目...... https://developer.apple.com/library/ios/samplecode/SimpleFTPSample/Introduction/Intro.html You can have a look to apple project SimpleFTPSample you can find a complete project with code ... https://developer. ...