Print Images using FOP

Can we print images using FOP by taking it from the database ? Iam using the FOP and outputing to a PDF. However, I have an image that I would like to print. The image is stored in the database as a BLOB. How can I print this image in the PDF document ?
(b) Alternatively, if this is not possible, do we need to move the image to a physical file system and use <img src> and print ? If so, how can we move the image to the file system ? I found only UTL_FILE can do this ? But Iam not sure if it can work properly for Image file. When I tested this using utl_file, my image file got corrupted.

Hi there, from what type of device are you trying to print the images from e.g. a smartphone/tablet or a PC/laptop?
Best
If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
I am an HP employee.

Similar Messages

  • Problem Printing Images Using JAI

    I'm using JAI in an application that prints images. My program works fine on my development machine (Windows XP), but when I put it on my Windows Server 2008 r2-64 bit, it crashes for certain images (these are large images of land plats) that go to a particular printer (OCE PlotWave 300) It prints my smaller images that are printing on a variety of printers just fine (images of Mortgages etc..) and it prints everything just fine on my development machine. What could possibly be causing this?
    Edited by: LongStranjeTrip on Feb 2, 2011 4:34 PM
    Edited by: LongStranjeTrip on Feb 4, 2011 8:11 AM

    I'm using JAI in an application that prints images. My program works fine on my development machine (Windows XP), but when I put it on my Windows Server 2008 r2-64 bit, it crashes for certain images (these are large images of land plats) that go to a particular printer (OCE PlotWave 300) It prints my smaller images that are printing on a variety of printers just fine (images of Mortgages etc..) and it prints everything just fine on my development machine. What could possibly be causing this?
    Edited by: LongStranjeTrip on Feb 2, 2011 4:34 PM
    Edited by: LongStranjeTrip on Feb 4, 2011 8:11 AM

  • Printing reports using fop

    Hi: My java application creates reports using fop and xml. Currently, I am printing the reports to pdf files. Is it possible to send the report straight to the printer instead of first creating the pdf file and then printing the report? If it is, can anyone please give me some help on how to do it?

    JasperReports is a powerful report-generating tool that has the ability to deliver rich content onto the screen, to the printer or into PDF, HTML, XLS, CSV and XML files.
    http://jasperreports.sourceforge.net
    There is a convenient visual designer to create reports for jasperreports library called iReport.
    Take a look at http://ireport.sourceforge.net
    Giulio

  • Unable to print images using ENVY 4500 - a red x appears

    I am unable to print certain images and instead see a red x where the image should be.
    This worked fine for a similar image a month ago.
    How can this be resolved?

    Hi there, from what type of device are you trying to print the images from e.g. a smartphone/tablet or a PC/laptop?
    Best
    If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
    If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
    I am an HP employee.

  • Print image using java

    Dear All,
    Can any one help me, how to print the image in java.
    Thanks in Advance.

    [http://java.sun.com/products/java-media/2D/index.jsp|http://java.sun.com/products/java-media/2D/index.jsp] will help you . Java 2d also have print api.
    you look at this
    [http://java.sun.com/javase/technologies/desktop/printing/|http://java.sun.com/javase/technologies/desktop/printing/]

  • How to print uspto patent images using Safari and Quicktime

    3/18/06
    Do you want to know how to print US patent images using Safari? Read on.
    When you access the "images" link of a specific patent on the www.uspto.gov/ website using Safari, the page you are viewing is only one small upper left tile of a huge patent image that is not sized to the screen. You can scroll and try to read the page but it's almost impossible. Try to print it out and you only print what's on the screen. Bummer.
    The fix:
    Place the cursor on the opened image (it may appear blank), hold down the CONTROL key on you keyboard and click on the image. Two instructions come up. Click on the "Save Image to the Desktop" instruction and a DImg.tiff file will be created on your desktop. Click on the .tiff file and it should open in the Preview program, then simply print out the image. Voila!!!!
    Click the yellow arrow in the left margin to access page 2 of the patent and repeat the previous instructions to create another .tiff file on your destop. Do every page and you'll have the patent available to print out one page at a time.
    You can then rename the files and create a folder for that specific patent so you can access it later without signing onto uspto site.
    It's odd that the ever compatible Apple does not provide seamless compatibility to view and print patent images on the US Patent and Trademark Office's website. Where would they be without protecting their own intellectal property? Let's hope the next version of Quicktime includes the appropriate ITU T.6 or CCITT Group 4 (G4) compression language.
    Even the "throw it out the Windows" operating system is up to speed on this issue for America's hard working inventors.
    Keep on inventing.
    Tommy K
    imac 400 DV   Mac OS X (10.3.9)   Cube 450
    imac 400 DV   Mac OS X (10.3.9)   Cube 450

    Another similar thread on this issue...
    http://discussions.apple.com/thread.jspa?messageID=1602391

  • How to print a mirror image using powerpoint from my macbook to hp printer

    I am making t-shirts and I can't get this image to reverse (print out as a mirror image, which I need for the photo transfer paper to work I can reverse part of the image using the rotation tool for "flip horizontal", but for some reason it doesn't work on all of it. Also, I'm using a macbook and when I go to print, under "paper tray/quality" I can actually see a box to check for mirror image, but it is in grey scale, so I can't select it.

    Hi,
    Do you have any other applications installed ... like Adobe Illustrator, Photo Shop ...
    Also, you can open the image in VIEW and rotating the image as you like.
    Dimaxum

  • Printing PDF documents using FOP

    Hi,
    I seem to be getting the following error when printing to PDF using FOP:
    report error:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1186
    ORA-12571: TNS:packet writer failure
    I've set up PDF printing by following the (FOP) instructions in the following link:
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    I've verified that my OC4J container and the jsp page apex_fop.jsp is running as it should as I can get PDF documents back if I call the jsp page outside of APEX (by sending in my own template and xml request parameters).
    I've also verified that I do hit the apex_fop.jsp page when trying to print from within the APEX application. The problem is that the two parameters template and xml are both null when trying to print PDF from APEX.
    It appears as though APEX is not sending in the template and xml request parameters.
    My test case is to create a simply report query in shared components, use a generic layout, select the pdf option and click on Test Report. The result is the error shown above.
    Any ideas? I know I'm close!
    btw, I'm using 10g and APEX 3.1
    Sanjeev

    thanks Dimitri ..
    I have progress... I went back and reconfig'd my oc4j, since Ihad donethat a long time ago.
    Now I am getting the 500 Internal Server Error
    Servlet eror: ... The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    The application.log give me a dump ...
    09/01/20 18:55:29.515 10.1.3.4.0 Started
    09/01/20 18:55:29.718 fop: 10.1.3.4.0 Started
    09/01/20 19:00:45.906 fop: Servlet error
    oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:320)
    at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:713)
    at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:321)
    at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
    at apex_fop._jspService(_apex__fop.java:71)
    at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
    .java:713)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
    .java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
    .java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
    .java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler
    .java:221)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
    .java:303)
    at java.lang.Thread.run(Thread.java:619)
    Not sure what to make of this, but it does give the xact same error each time.
    For what it's worth, I can successfully call a test page per Marc Sewtz's blog, so conceptually something is working, which is progress. I'll keep at it, but suggestions are welcome. Thanks for the direction.
    Karen

  • Including image in FO fille to generate PDF using FOP

    Hi, we are trying out generating PDF files in JDK1.1.7 environment by using FOP.
    While we are testing we are encountering problem with writing images.
    In .fo file if the image is included, it is giving the following exception.
    We are of no clue regarding this. If any one can help in this regard, please help us out.
    Help of any kind is greatly appreciated.
    Following is the Exception:
    java.lang.UnsatisfiedLinkError: parseImage
    at sun.awt.image.GifImageDecoder.readImage(GifImageDecoder.java:558)
    at sun.awt.image.GifImageDecoder.produceImage(Compiled Code)
    at sun.awt.image.InputStreamImageSource.doFetch(Compiled Code)
    at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
    at sun.awt.image.ImageFetcher.run(Compiled Code)
    Error while creating area : Error while loading image file:/C:\fop1.4\src\xml_fe
    ather.gif : class java.lang.Exception - Image error
    Hisun.awt.image.URLImageSource
    Regards
    Ramavardhan.

    java.lang.UnsatisfiedLinkError: parseImage
    means that a native library is missing (ie .dll on windows, .so on most unix, .sl on other unix). The default behaviour is to try and load librarys from the CLASSPATH variable, but apps can try to locate them in other ways.
    asjf

  • Printing document /image using flex 4.5.1 - is it possible?

    Hi respected,
    I want to check one fesibility,
    Printing document or image using flex 4.5.1 - is it possible? I want to develope mobile application (ipad) using Adobe 4.5.1 . So is there any way to handle priniting from app. 
    Regards,
    Madhu

    you can't directly add image to printing class, create custom component  class for image first, then add to printing class as component.

  • I scanned an old image using my Epson NX515 printer, used GIMP to make some minor repairs on the image and printed it out.  I noticed there were a number of evenly spaced thin blue lines across the image, approximately six of them.

    I scanned an old image using my Epson NX515 printer, used GIMP to make some minor repairs on the image and printed it out.  I noticed there were a number of evenly spaced thin blue lines across the image, approximately six of them. I opened & printed the image on my PC using PAINT.NET.  No lines appeared. I sent the image to my daughter. She printed it and found no lines. I printed the image using Seahorse on my Mac and the lines still appeared. I used basically the same print settings on Mac and PC.

    maahes wrote:
    did so now, only now I'm getting a slightly different error: could not find udevd no such file or directory. I checked both grub.cfg's and my mkinitcpio.conf and there's no listing for udevd ....which I've never heard of, so I assumed it was a typo?
    For clarification: udev is in the mkinitcpio.
    I'm not sure whether I yet have a good intuition for how you have your machine set up, but I suspect you need to include a cryptdevice flag to the kernel in your grub config. The file isn't found because the kernel doesn't know your root directory needs decrypting first.
    My setup is an LVM over LUKS over LVM sandwich. To boot into my system, the grub.cfg contains the line:
    linux /vmlinuz-linux root=/dev/mapper/cryptvg-root cryptdevice=/dev/mapper/vg-crypt:root rootfstype=ext4 pcie_aspm=force acpi_osi=Linux acpi_backlight=vendor i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 ro
    Now, most of those flags don't have anything to do with your problem, but note the cryptdevice. It tells the kernel it's dealing with an encrypted filesystem sitting in a logical volume called crypt on a volume group called vg. The bit after the colon tells the kernel to associate this encrypted filesystem with /dev/mapper/root.
    As for how to fix your system, I'm afraid I still feel a bit fuzzy about how your LVM and encrypted layers relate to each other, whether you have LVM over LUKS, or LUKS over LVM, or something else. Was there a particular how-to that you followed?

  • I can't print wirelessly using Airport Express.  I have my HP printer connected to a USB hub, and the hub to the Airport Express, but when I select the HP from the printer list, my MacBook says the printer is "off-line" - even when it is not.

    I can't print wirelessly using Airport Express.  I have my HP printer connected to a USB hub, and the hub to the Airport Express, but when I select the HP from the printer list, my MacBook says the printer is "off-line" - even when it is not.  I've tried several USB connectors, and several different ports on my USB hub; same result.  I need to have the HP connected to the hub 'cause from there it's connected to our desktop Mac.

    Hi,
    I am currently replying to this as it shows in the iChat Community.
    I have asked the Hosts to move it to Snow Leopard  (you should not lose contact with it through any email links you get)
    I also don't do Wirelss printing so I can't actaully help either.
    10:01 PM      Friday; July 29, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Print images in PNG and BMP formats

    I have converted images from xwd to bmp by using JAI. now I want to print them.
    How can I print PNG and BMP Files? How can I read images in different formats and make them print.
    Please help me !

    JAI follows the Java 2D printing model. All you need to do is to read your PNG, BMP images as RenderedImage, Renderable, or BufferedImage objects. To print an image, draw the image object on the printer's graphics context using one of drawImage(), drawRenderedImage(), and drawRenderableImage() methods of the Graphics2D class.
    I have some sample code at http://www.geocities.com/larryhr/samplecode/samplecode.html. See the Printing section. JAIImagePrint.java should give you some indication as to how to print images read by the JAI codec.

  • LaserJet Pro 200 color MFP M276nw prints image shifted 1/2" from top of page.

    When printing any report, diagnostic or form from the machine system I get printed image shift approx. 1/2" from the top.
    Is there any adjustment that can be made to the MFP to center image?

    Hi @patrick22152, 
    I understand that when printing documents or a printer hardware self test, it shifts 1/2" from the top of the page. I can help you with this.
    Make sure the printer is connected directly to a wall outlet. (don't use a power hub or a surge protector) This ensures the printer is receiving full power and may help this situation.
    It sounds like the paper isn't feeding properly. Since you are having this issue with the hardware tests and printing from the computer. If it was just the computer, I would check the paper type selected in the print driver, to make sure it isn't set on the proper paper type and not the default unspecified paper.
    Try another type of paper to see if you get the same results.
    I have provided a document with some steps to try to see if that will resolve the issue.
    'Load Paper' Error Message Displays and the Printer Does Not Pick Up or Feed Paper.
    Disregard the title.
    Here is a example of how the Configuration Report should look like.
    Printing a Configuration Report.
    Run a cleaning page:
    From the Home screen, touch the Setup button.
    Touch the Service menu.
    Touch the Cleaning Page button.
    Load plain letter or A4 paper when you are prompted.
    Touch the OK button to begin the cleaning process.
    What size and kind of paper are you using?
    What operating system are you using? How to Find the Windows Edition and Version on Your Computer.
    How is the printer connected? (USB/Ethernet/Wireless)
    If you need further assistance, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How to get Safari printing images in proper resolution?

    I have problems printing high resolution images from a web page.
    Example: When printing a 300 dpi image that measures 5 x 6 inches Safari rescales this image to a resolution of about 282 dpi which results in a slightly larger image. The web page contains CSS definitions with the correct image size. It is suspicious that the printed images always seem to be rescaled by 6.348%. I tried different CSS definitions and page structures with the same result.
    When the CSS definition for the image size is increased by 6.348% the resolution and image size fits the original values and dimensions.
    What about this magical 6.348%?
    The problem is verified on 10.4.11 and 10.5 with Safari 3.0.1 on different machines with all kind of images in every resolution you can think of, with different printer drivers (but I do not think this is relevant) - all images are rescaled by this magic factor. I tried all kind of printer settings, took a look at the Library plists related to printing ... Please help me.
    It is weird that Safari offers ICC support for color proof matches but is not able to print an image with its correct resolution/dimensions. Firefox for example does not touch the image resolution, why the heck Safari does?

    Hi Ned,
    Website builders are using maximum 75 DPI images. These are to small i quality for other use when you are looking for quality images. The reason for using images in small size like 75 DPI is to prevent that the website is getting to big in size, an for using them on the internet they are good enough for best viewing.
    QuickTimeKirk is right to get better images from a website. If the developer is NOT offering a downloadble better quality you have to do it with the on they offer.
    Dimaxum

Maybe you are looking for