This week's book giveaway is in the
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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.
Java web charts
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.
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?
Java Resources at
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Return a file (pdf) through a web service
sending pdf file to client as byte array
want to send pdf file to client from server. pdf is generated at server
Save pdf from http inputstream to file
WS and tomcat
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013