dtsfnyay300457 2013-04-25 15:11
浏览 113

将一个字符串从php传递给java

I have a situation like this.

Some of my data was compressed using gzdeflate() function in php and stored in the database. Now I need to do some work with the data stored in database. I tried a lot of options in Java(including GZipStream, Inflater etc) but was unable to retrieve the data from database.

So I thought of using gzinflate() function in php and was able to retrieve the data quite easily. Now I have the data in a variable in php which I want to pass back to my java program so that I can continue with my previous work.

I have come across some of the options like Java/PHP bridge, Caurces and all but couldn't find a way either.

Is there a way which can solve this requirement of mine. I am stuck in this part for a while now and would really appreciate your help.

  • 写回答

1条回答 默认 最新

  • duanqilupinf67040 2013-04-25 15:15
    关注

    Try JZlib library to decompress using java. JZlib can inflate data deflated by zlib.

    评论

报告相同问题?

悬赏问题

  • ¥15 一道python难题2
  • ¥15 一道python难题
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备