是否可以在没有mysql的情况下从java小程序向php发送文件?
是否可以将图像或文件从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,为此使用数据库甚至没有意义(除非这是测试结果的来源)。只需将屏幕截图/结果作为一个 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.
那么您想要的是结合图像和测试结果来渲染 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