|
Snippet of code from a proof of concept I did: InputStream inputStream = blob.getBinaryStream(); long length = blob.length(); response.setContentType(contentType); byte [] loader = new byte [ (int) length ]; inputStream.read(loader); ServletOutputStream out = response.getOutputStream(); out.write(loader); The ones we have done are targeted at plugins (not, I admit, specifically TIFF format images). TIFF can be a problem with browsers in my experience, but I am quite sure others on the list will have more to offer on this. The content type (i.e. "application/PDF" or whatever) is passed as a parameter to the servlet from which the code has been taken. blob is needless to say a Blob. I have had no problems with any size of image when using Tomcat and JDK1.4 on Linux/Win2K, but I do seem to recall others in my team having problems with images over a certain size in other situations. To be honest I think this is really all I know on this one - it's clear others with more in depth experience can further the discussion though. Mandy --------------------------------------------------------------------------- --------------------------------------------------------------------------- Notability Solutions Plc. Registered No. 2918101. Registered @ Kingfisher House, Frimley Business Park, Frimley, Surrey. GU16 7SG U.K. This message is intended only for the named addressee(s) and may contain confidential and/or privileged information. If you are not the named addressee you should not disseminate, copy or take any action or place any reliance on it. If you have received this message in error please notify postmaster@Notability.com and delete the message and any attachments accompanying it immediately. --------------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.