geoprocessing / wps4m Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
你好,我最近也在学习测试 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 进行了测试,结果也是一样的。
是我客户端代码写错了,还是什么问题?
请不吝赐教,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.