• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Multiple Files in an InputStream

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a method that takes an arraylist of tif objects and sends them
to another method to extract them from a database and put them into
a HttpServletResponse to be sent to a tiff viewer applet running in a jsp.
My problem is that I need to send multiple files to the applet in a single stream for the viewer to show every file. Here is the code I have, which works for a single image.



Any suggestions, ideas would be greatly appreciated.

Chris Cornelius
 
Sheriff
Posts: 27529
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

which works for a single image

Do you mean to imply that it doesn't work for more than one image? In what way doesn't it work?

I would expect it to not work because two or more images concatenated together in a single stream can't be handled by something that's expecting an image. But maybe the applet you're sending this to does have some way of extracting the images from the data stream, I don't know.
 
Chris Cornelius
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The images are loaded, but the viewer only displays
the first image that is streamed. It might just be the
viewer, will look into that more.

Thanks,

Chris
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic