将传真连接到网站

发布于 2024-10-04 21:43:07 字数 149 浏览 0 评论 0原文

我正在为特定工作流程构建在线文件管理系统。该系统的服务之一应如下: 每当收到传真时,都应将其作为 PDF 文件保存在数据库的某个表中。 我正在使用 ASP.NET 和 C# .. 是否可以在不需要中间桌面应用程序的情况下执行该任务? 如果可能的话,非常感谢对方法的解释! 谢谢你!!

I'm building an online file management system for a certain workflow. One of the services of this system should be as follows:
whenever a fax is received, it should be saved in a certain table in the database as a PDF file.
I'm using ASP.NET with C# ..
Is it possible to perform that task without the need for a middle desktop application?
in case it is possible, explanation of the methodology is greatly appreciated!
thank you!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

单身狗的梦 2024-10-11 21:43:07

有很多可用的传真到电子邮件系统,例如 YAC。如果您使用其中一个将附有传真的电子邮件发送到您的服务器,则您可以使用服务器上的代码将附件保存到文件中。这可以使用 Apache 和 PHP 来完成,但我无法帮助您使用 ASP.NET。不过,这可能会给你一个良好的开端。

There are plenty of Fax to Email systems available, such as YAC. If you use one to send an email to your server with the fax attached, you could then use code on your server to save the attachment to a file. This can be done with Apache and PHP, I can't help you with ASP.NET though. This might give you a head-start though. http://www.jscape.com/articles/retrieving_email_pop3_csharp.html

鹿港小镇 2024-10-11 21:43:07

为了扩展 stevenmc 的答案,这可以通过 API 可访问的互联网传真服务(例如 Interfax)上的 ASP.NET 来完成。他们的网站上有 C# 传真示例可供查看和下载。

一旦您注册了入站传真服务(对开发人员免费),您就可以从 .NET 连接到 Web 服务端点。这种方法的关键是让您的应用程序使用方法 GetList

objInterfax.GetList(this.txtUser.Text, this.txtPass.Text, interfax.ListType.NewMessages, i, ref InItems);

通过其服务发送到您的号码的任何传真都将在此方法返回的结构中显示为新记录。一旦有新传真可用,您可以使用方法 GetImageChunk 下载它:

objInterfax.GetImageChunk(this.txtUser.Text, this.txtPass.Text, InItems[i].MessageID, false, InItems[i].MessageSize, 0, ref b);

To expand on stevenmc's answer, this can be done with ASP.NET on an API-accessible internet fax service such as Interfax. There are C# fax samples available on their site for review and download.

Once you've signed up for inbound fax service (free for developers), you hook up to the Web Service endpoint from .NET. The crux of this approach is for your app to query the servers periodically for any new faxes that arrive for you, with method GetList:

objInterfax.GetList(this.txtUser.Text, this.txtPass.Text, interfax.ListType.NewMessages, i, ref InItems);

Any fax sent to your number on their service will appear as a new record in the structure returned by this method. Once a new fax is available, you download it with method GetImageChunk:

objInterfax.GetImageChunk(this.txtUser.Text, this.txtPass.Text, InItems[i].MessageID, false, InItems[i].MessageSize, 0, ref b);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文