It also works for getInstance(byte[]).

Best Regads,
Paulo Soares

> -----Original Message-----
> From: Mark Hall [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 14:06
> To:   Cinzia S; [EMAIL PROTECTED]
> Subject:      Re: [iText-questions] testing for jpeg encoding
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wednesday 25 June 2003 13:04, Cinzia S wrote:
> > I'm sorry Paulo, but I don't get it, in JAI I'm encoding an image so
> that I
> > get a jpeg encoded format, RTF accepts jpgs so it should be happy with
> it.
> > The only way to add this to an RTF document is by creating a
> > com.lowagie.text.Image, which I do by using static Image's getInstance()
> > method. Why a jpeg encoded image is not recognized as such when going
> > through and output stream which is not a FileOuputStream? I know I might
> be
> > lacking some basic knowledge here, but thanks for your help.
> This is caused by the way the rtf handles jpegs. The jpeg is fully added
> to 
> the document exactely as it exists in the file. The rtf writer accesses
> the 
> image via the Image.url().openStream() method. If it cannot read from that
> 
> source, no image will be added to the document. As a result only images 
> created by calling getInstance(URL) or getInstance(filename) will succeed.
> 
> Greetings,
> Mark
> - -- 
> drug, n:
>       A substance that, injected into a rat, produces a scientific paper.
> 
> My GPG public key is available at:
> http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> 
> iQEVAwUBPvmeIEks8txBCICQAQKIQQf/e6uPBwmrXIG5op2YwsHjR7p9aT9MfaE+
> 17zn92J5CiKltrKvzlEcfBDHXbgF9+u7YRDOuZb05MROAOUsF3GuEhLyuaqPr7dN
> o8DTNn7Ruc8iiMI0FwiI/y5u7e3B33UrKBxnOwg2tx3WatMk1+rNz15aKaGoQHNr
> OmDvXkoCpiY2rOoaJ7DzMLu4TYFRIkprrQkIGYQSgkJa8JXd7NnKlzedOn6m3FBf
> EnjC7D0RZcgnZN0uRyMxdUlYXc89RzHJTgn7YnwKeiQKw3au3trNIp0ntPLSKjIJ
> qyobM7s7Na7rvXOP7Uc84rosGlHc3yON0DbuA9f3fLaRg8dAKzH4lg==
> =NS/c
> -----END PGP SIGNATURE-----
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to