|
Hi I have a problem with the following code it works fine if I run it for my PC and point the image file names at the as400 but running on AS400 no error messages are produced but also no image is found in the document. byte[] zbig = null; try { DataInputStream di = new DataInputStream(new FileInputStream(IMAGE_ZBIG)); zbig = new byte[di.available()]; di.read(zbig); }catch (IOException ex) { m.out(0,err.STD_OUT,"Error opening brackground image",err.INFO); } byte[] zsmall = null; try { DataInputStream di = new DataInputStream(new FileInputStream(IMAGE_ZSMALL)); zsmall = new byte[di.available()]; di.read(zsmall); }catch (IOException ex) { m.out(0,err.STD_OUT,"Error opening Zuellig image",err.INFO); } background.addPicture(new Picture(zbig,(int)d.getWidth() , (int)d.getHeight(), Picture.LOCATE_NEW_LINE, Picture.ALIGN_LEFT, Picture.WRAP_AROUND), 1, 1, Background.BOTTOM_LEFT); background.addPicture(new Picture(zsmall,30 , 30, Picture.LOCATE_NEW_LINE, Picture.ALIGN_LEFT, Picture.WRAP_AROUND), imgHieght, imgWidth, Background.BOTTOM_LEFT); Hamish ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________
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.