Giter VIP home page Giter VIP logo

wps4m's People

Contributors

geoprocessing avatar mingda-zhang avatar

Watchers

 avatar  avatar

Forkers

houzw

wps4m's Issues

javaps 服务端接收到的数据有问题

你好,我最近也在学习测试 JavaPS 封装命令行为服务。目前,服务的发布暂时未发现问题,用 wps-client-lib 写的客户端可以获得输入输出描述等信息。
但是在使用下述代码测试服务时,我需要传过去一个 tiff 文件,但服务端获得的文件为 1020kb,打不开,且实际的数据没有 1020kb。
如果直接将下面的 s 改为 inputStream,服务端数据大小为 32字节

        byte[] bytes = FileUtils.readFileToByteArray(file);
        String s = Base64.encodeBytes(bytes);
        builder.addComplexData("dem", s, null, "base64", "application/geotiff");

我也根据你这里的 GenericFileParser 进行了测试,结果也是一样的。

是我客户端代码写错了,还是什么问题?
请不吝赐教,谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.