Re: Embed image from database, not from file

2021-03-29 Thread Csaba Nánai
Hi,

An example for data url u can see at
https://stackoverflow.com/questions/8499633/how-to-display-base64-images-in-html

Best regards, Csaba

d...@rucotec.ch  ezt írta (időpont: 2021. márc. 29., H,
9:27):

>
> > On 26 Mar 2021, at 15:08, Simon Steiner 
> wrote:
> >
> > Hi,
> >
> > The uri can be a data url also
> >
>
> Sounds great. How would that look like? How would I embed the data in the
> xml and then reference from xsl?
> Thanks a lot
>
> > Thanks
> >
> > -Original Message-
> > From: Markus Ruggiero 
> > Sent: 26 March 2021 13:45
> > To: fop-users@xmlgraphics.apache.org
> > Subject: Embed image from database, not from file
> >
> > Folks,
> >
> > I have image data stored in a database, not as a file. It is JPEG data in
> > Base64 encoding. My understanding is that with fo.external-graphic I can
> > only use a proper file url for the image reference - but there is no
> file in
> > my case. Is there any other way to embed image data in the PDF output?
> Can I
> > somehow put the image data into the input xml data file and pull it from
> > there?
> >
> > Thanks for any help
> > ---markus---
> > -
> > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> >
> >
> >
> > -
> > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> >
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


Re: Embed image from database, not from file

2021-03-29 Thread d...@rucotec.ch


> On 26 Mar 2021, at 15:08, Simon Steiner  wrote:
> 
> Hi,
> 
> The uri can be a data url also
> 

Sounds great. How would that look like? How would I embed the data in the xml 
and then reference from xsl?
Thanks a lot

> Thanks
> 
> -Original Message-
> From: Markus Ruggiero  
> Sent: 26 March 2021 13:45
> To: fop-users@xmlgraphics.apache.org
> Subject: Embed image from database, not from file
> 
> Folks,
> 
> I have image data stored in a database, not as a file. It is JPEG data in
> Base64 encoding. My understanding is that with fo.external-graphic I can
> only use a proper file url for the image reference - but there is no file in
> my case. Is there any other way to embed image data in the PDF output? Can I
> somehow put the image data into the input xml data file and pull it from
> there?
> 
> Thanks for any help
> ---markus---
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Embed image from database, not from file

2021-03-26 Thread Simon Steiner
Hi,

 

Something like this:



 

Thanks

 

From: Markus Ruggiero  
Sent: 26 March 2021 14:44
To: fop-users@xmlgraphics.apache.org
Subject: Re: Embed image from database, not from file

 

Sounds great. How would that look like? How would I embed the data in the
xml and then reference from xsl?
Thanks a lot





On 26 Mar 2021, at 15:08, Simon Steiner mailto:simonsteiner1...@gmail.com> > wrote:

 

Hi,

The uri can be a data url also

Thanks

-Original Message-
From: Markus Ruggiero mailto:mailingli...@kataputt.com> > 
Sent: 26 March 2021 13:45
To: fop-users@xmlgraphics.apache.org
<mailto:fop-users@xmlgraphics.apache.org> 
Subject: Embed image from database, not from file

Folks,

I have image data stored in a database, not as a file. It is JPEG data in
Base64 encoding. My understanding is that with fo.external-graphic I can
only use a proper file url for the image reference - but there is no file in
my case. Is there any other way to embed image data in the PDF output? Can I
somehow put the image data into the input xml data file and pull it from
there?

Thanks for any help
---markus---
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org> 
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
<mailto:fop-users-h...@xmlgraphics.apache.org> 



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org> 
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
<mailto:fop-users-h...@xmlgraphics.apache.org> 

 



Re: Embed image from database, not from file

2021-03-26 Thread Markus Ruggiero
Sounds great. How would that look like? How would I embed the data in the xml 
and then reference from xsl?
Thanks a lot

> On 26 Mar 2021, at 15:08, Simon Steiner  wrote:
> 
> Hi,
> 
> The uri can be a data url also
> 
> Thanks
> 
> -Original Message-
> From: Markus Ruggiero  
> Sent: 26 March 2021 13:45
> To: fop-users@xmlgraphics.apache.org
> Subject: Embed image from database, not from file
> 
> Folks,
> 
> I have image data stored in a database, not as a file. It is JPEG data in
> Base64 encoding. My understanding is that with fo.external-graphic I can
> only use a proper file url for the image reference - but there is no file in
> my case. Is there any other way to embed image data in the PDF output? Can I
> somehow put the image data into the input xml data file and pull it from
> there?
> 
> Thanks for any help
> ---markus---
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 



Re: Embed image from database, not from file

2021-03-26 Thread Chris Bowditch

Hi,

yes you can use data URI to avoid saving it to a file

Thanks,

Chris

On 26/03/2021 13:45, Markus Ruggiero wrote:

Folks,

I have image data stored in a database, not as a file. It is JPEG data in 
Base64 encoding. My understanding is that with fo.external-graphic I can only 
use a proper file url for the image reference - but there is no file in my 
case. Is there any other way to embed image data in the PDF output? Can I 
somehow put the image data into the input xml data file and pull it from there?

Thanks for any help
---markus---
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

.




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Embed image from database, not from file

2021-03-26 Thread Simon Steiner
Hi,

The uri can be a data url also

Thanks

-Original Message-
From: Markus Ruggiero  
Sent: 26 March 2021 13:45
To: fop-users@xmlgraphics.apache.org
Subject: Embed image from database, not from file

Folks,

I have image data stored in a database, not as a file. It is JPEG data in
Base64 encoding. My understanding is that with fo.external-graphic I can
only use a proper file url for the image reference - but there is no file in
my case. Is there any other way to embed image data in the PDF output? Can I
somehow put the image data into the input xml data file and pull it from
there?

Thanks for any help
---markus---
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org