Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Rep Power
    0

    Default PDF to JPEG in memory(on the fly)nd write the response stream obj directly on browser

    Hi All

    Following is the problem statement :

    Conversion of PDF to JPEG - needs to happen in memory but not using the physical storage/File Location. Write the response stream object containing images directly to the Client Browser without storing images.

    Detail information:
    To show the JPEG images in the JSP we are calling the third party web service to fetch PDF file as byte array.
    The Third Party web-service will return the PDF file content in base64Binary Format as two dimensional byte arrays.
    Then we need to convert it into JPEG and display it on JSP w/o storing it on any physical location.

    Earlier we were writing it in a temporary folder (Physical location) and deleting it as soon as user navigates from that page. But that was not acceptable solution.

    So we're looking for On-the-Fly conversion.

    Thanx in advance.

    Regards,
    Vipin

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,185
    Rep Power
    20

    Default Re: PDF to JPEG in memory(on the fly)nd write the response stream obj directly on bro

    Have you got conversion software?
    If so then I'd look at the API for that and see if there's a way of getting it to write to an OutputStream.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: PDF to JPEG in memory(on the fly)nd write the response stream obj directly on bro

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. how to filter browser response using java program?
    By vijay_p in forum New To Java
    Replies: 4
    Last Post: 12-30-2011, 08:41 AM
  2. Replies: 0
    Last Post: 03-02-2010, 09:07 AM
  3. write http response into file?
    By DaBernie in forum Networking
    Replies: 3
    Last Post: 10-11-2009, 12:21 AM
  4. Replies: 6
    Last Post: 08-06-2008, 02:41 PM
  5. Replies: 0
    Last Post: 11-14-2007, 07:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •