Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8511187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:55:10+00:00 2026-06-11T03:55:10+00:00

i am able to render my charts to different file types: dRenderer = ce.getRenderer(dv.SVG);//or

  • 0

i am able to render my charts to different file types:

 dRenderer = ce.getRenderer("dv.SVG");//or dv.PNG
 dRenderer.setProperty(IDeviceRenderer.FILE_IDENTIFIER, path);

but how to get the binary data as a stream? the charts will most likely be end in some one’s browser. so a file on disk i relativly useless.

(it would be stupid to save many charts on disk before reading them again, wouldn’t it?)

Answer in short:

it is possible to give an Outputstream instead of a path string as “FILE_IDENTIFIER” (works with both “dv.SVG” and “dv.PNG”)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:55:11+00:00Added an answer on June 11, 2026 at 3:55 am

    If you are using SVG set the file identifier to the output stream and make sure to set the content type(response.setContentType( “image/svg+xml” );

        try
        {   
            RunTimeContext rtc = new RunTimeContext( );
            rtc.setULocale( ULocale.getDefault( ) );
    
            Generator gr = Generator.instance( );
            GeneratedChartState gcs = null;
            Bounds bo = BoundsImpl.create( 0, 0, 600, 400 );
            gcs = gr.build( idr.getDisplayServer( ), chart, bo, null, rtc, null );
    
            idr.setProperty( IDeviceRenderer.FILE_IDENTIFIER, out ); 
            idr.setProperty(
                    IDeviceRenderer.UPDATE_NOTIFIER,
                    new EmptyUpdateNotifier( chart, gcs.getChartModel( ) ) );
    
            gr.render( idr, gcs );
        }
    

    See this link

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say I wish to be able to render different view logic for two
With this code i am able to render a image from a servlet ,But
As the title states, I have a svg image, but I am not able
Prawn/prawnto is cool stuff to generate pdf file. But I am not able to
My issue is not able to render the chart in .tpl file. The following
i am not being able to render a bulleted list through xml/xsl transformation. I
I want to be able to render a Grid while the number of some
i want to be able to take html code and render plain text out
Bill James wrote : I was able to render an HTML page with the
I'm implementing a HttpWorkerRequest in order to be able to render Asp.Net web pages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.