This Question is Assumed Answered

1 "correct" answer available (5 pts) 15 "helpful" answers available (3 pts)
4 Replies Last post: Apr 27, 2008 10:59 PM by tiju

sending graphics to server-side

Apr 25, 2008 2:47 AM

Click to view tiju's profile Level 6 tiju 118 posts since
Oct 17, 2007

Is this possible?

How do I convert graphic objects to byte to send across an HttpFormData?

Will Graphic.object-serialize be of any help?

Is any sample code present with us for this?

Click to view friedger's profile MVP friedger 108 posts since
Jan 13, 2008
1. Re: sending graphics to server-side Apr 25, 2008 3:31 AM

What do you want to send? The graphic hierarchy, the current state of each control, an image of the object, with focus or all of that?

Friedger

Click to view tiju's profile Level 6 tiju 118 posts since
Oct 17, 2007
2. Re: sending graphics to server-side Apr 25, 2008 4:26 AM
in response to: friedger

Hi Friedger,

My basic requirement was to print screen-shot of an applet an interactive curl report to PDF, for which, the PDF writer is installed at the server-side. I wanted to avoid calling the {print-graphic} from client-side curl as this would require PDF writers for each client machine.

I believe an image of the graphic object would suffice.

Thanks

Click to view friedger's profile MVP friedger 108 posts since
Jan 13, 2008
3. Re: sending graphics to server-side Apr 25, 2008 5:03 AM
in response to: tiju
I have uploaded a small applet at Applet Snapshot

Maybe this might be helpful, it just prints a red text into an image. You can replace f (Frame with red text) with any content you like.


Friedger

Click to view tiju's profile Level 6 tiju 118 posts since
Oct 17, 2007
4. Re: sending graphics to server-side Apr 27, 2008 10:59 PM
in response to: friedger
Thanks much Friedger