在ftp路径中创建pdf [英] Create a pdf in ftp path

查看:148
本文介绍了在ftp路径中创建pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多网站提供信息,但我面临使用凭据在ftp路径中创建pdf文件的问题。



尝试使用流,文件流和webclient。 />


但我的问题是它在相同位置创建.txt但是在尝试使用pdf时它不是在ftp位置创建文件。



我尝试过:



lot of sites giving information but i am facing issue with creating a pdf file in ftp path using credentials.

Tried with stream,filestream and webclient.

But my issue is its creating .txt in same location but when trying with pdf it is not creating a file in ftp location.

What I have tried:

Tried with stream,filestream and webclient.

推荐答案

基本上,你不能。你必须在本地创建.PDF文件并将其上传到FTP服务器。



文本文件也一样。



FTP服务器不支持直接读/写文件等流操作。
Basically, you can't. You have to create the .PDF file locally and upload it to the FTP server.

The same goes for text files too.

FTP servers do not support stream operations like reading/writing files directly.


试过这个?



c# - 将文件上传到来自字符串或流的FTP服务器 - Stack Overflow [ ^ ]


这篇关于在ftp路径中创建pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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