This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Return a file (pdf) through a web service
Joined: Jul 20, 2005
Mar 22, 2006 15:06:00
I know this may seem like an odd request, but we would like our web service to return a
file... Is this possible? Could someone point me in the right direction?
Thanks again gurus.
There are only 10 types of people in this world... Those who understand binary and those who don't.
Joined: Mar 22, 2005
Mar 22, 2006 16:56:00
The more common case is to transfer files from the client to the server, which is described in articles
. But the same techniques may be applicable to the reverse case as well.
Ping & DNS
- my free Android networking tools app
Joined: Jul 05, 2009
Jul 05, 2009 23:25:11
We have done with passing PDF byte array as
in String as return type where in we can pass other parameter from Web service
Please be at the blog
Joined: Dec 27, 2007
Jul 06, 2009 06:00:56
check MTOM. There is support for same in JAX-WS. If you are in JAX-RPC than use SAAJ api's. It has capability to attach the attachments.
Business Process Analysis
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jul 06, 2009 07:12:46
We have done with passing PDF byte array as String in String as return type
Now THAT is a disaster waiting to happen since byte to String always involves character conversions.
Perhaps you wanted to talk about base64 encoding of a byte to a String?
subject: Return a file (pdf) through a web service
want to send pdf file to client from server. pdf is generated at server
WS and tomcat
Save pdf from http inputstream to file
sending pdf file to client as byte array
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014