Make PHP execute and communicate with a Java application on a web server

前端 未结 4 1895
你的背包
你的背包 2021-01-12 09:10

I have a java application that will take the image as an input and output another image. I have a website with a popular host (PHP+MYSQL Hosting). I want to create a page on

4条回答
  •  -上瘾入骨i
    2021-01-12 09:57

    I think your best bet here is with your java app running as cron(or a deamon) that can load the file details from the database. This will require a (one or more) page-refresh on the users part after the generation is complete, at which point your script can recall the image from the database/filesystem.

    I do not think you will be able to do this in real-time due to timeout restrictions on the PHP webpage. However, you could write a java applet that can take the file and process it before sending it to the server (or depending on how you intend to use it, perhaps you do not need to upload it after the transformation?).

提交回复
热议问题