是否可以在没有mysql的情况下从java小程序向php发送文件?

发布于 2024-12-29 04:54:18 字数 141 浏览 3 评论 0原文

是否可以将图像或文件从 java 小程序发送到生成 pdf 的 php 脚本。

到目前为止,我的java小程序有机会将小程序的屏幕截图保存在用户选择的目录中,并且用户可以以pdf的形式保存测试结果。但我不想将它合并到一个文件中,并且我想避免使用数据库。

Is it possible send a image or file from an java applet to a php script which produce a pdf.

Until now my java applet has the opportunity that you can save a screenshot of the applet in the users chosen directory and the user can save the test results in form of a pdf. But I want t combine it to one file and I would like to avoid to work with a database.

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

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

发布评论

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

评论(2

难理解 2025-01-05 04:54:18

是的,为此使用数据库甚至没有意义(除非这是测试结果的来源)。只需将屏幕截图/结果作为一个 POST 请求上传,然后使用 PHP 生成 PDF。

Yes, it wouldn't even make sense to use a database for this (unless that is the source of the test results). Just upload the screenshot/results as one POST request and then generate PDF with PHP.

情绪少女 2025-01-05 04:54:18

那么您想要的是结合图像和测试结果来渲染 PDF?处理框架有一个很好的Render2PDF功能。将它集成到您​​的项目中,您将不需要这些直接来自地狱的 PHP 东西。

拉德克

So what you want is to render the PDF combining both, the image and the test results right? The processing Framework has a nice Render2PDF function. Integrate it in your project and u wont need this PHP stuff which comes directly from hell.

Radek

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文