Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Binary content in Browser
Binary content in Browser [message #21120] Mon, 30 April 2007 15:03 Go to next message
Eclipse UserFriend
Originally posted by: roberto.sanchez.autonomind.com

Hi all,

In my app I generate PDFs dinamically , How can I to show them to user
?, I've thought about creating a temporary file in a directory in web
server and set the url in a Browser control, but I don't know if exists
another way more correct or elegant.

Do you know if it is planned the possibility to set binary content to a
Browser widget in SWT/RAP ?

Thanks in advance.
Roberto.
Re: Binary content in Browser [message #21193 is a reply to message #21120] Wed, 02 May 2007 13:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

There are no plans to allow to set binary content in the browser widget.
Apart from possible problems that the PDF reader plug-in may cause when
running in an IFRAME, the way you intend to go should do it.

Cheers
Rüdiger


Roberto Sánchez wrote:
> Hi all,
>
> In my app I generate PDFs dinamically , How can I to show them to user
> ?, I've thought about creating a temporary file in a directory in web
> server and set the url in a Browser control, but I don't know if exists
> another way more correct or elegant.
>
> Do you know if it is planned the possibility to set binary content to a
> Browser widget in SWT/RAP ?
>
> Thanks in advance.
> Roberto.
Re: Binary content in Browser [message #21241 is a reply to message #21193] Wed, 02 May 2007 14:35 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hello,
I have the same demand for my application in RAP. I solved it with creating
a servlet that uses the stream of a file (i.e. PDF) and display it whitin
the
browser control. But I have to problems that could not be fixed yet. First,
if I want to save the PDF with the PDF-plugin I get the servlet name as the
file name to save (i.e. myservlet.pdf).
Maybe there is a solution for it, but I could not find any. The second and
more grave problem is, as R
Re: Binary content in Browser [message #21272 is a reply to message #21241] Wed, 02 May 2007 16:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: roberto.sanchez.autonomind.com

Thank you Markus for your help, Next stage in my app is to create PDFs
and let user to download it, but I'm not sure about the way to follow if
I find any other solution/approach I'll post it here.

Regards.
Roberto.


Markus Krüger wrote:
> Hello,
> I have the same demand for my application in RAP. I solved it with creating
> a servlet that uses the stream of a file (i.e. PDF) and display it whitin
> the
> browser control. But I have to problems that could not be fixed yet. First,
> if I want to save the PDF with the PDF-plugin I get the servlet name as the
> file name to save (i.e. myservlet.pdf).
> Maybe there is a solution for it, but I could not find any. The second and
> more grave problem is, as Rüdiger already mentionedm, that if a file is
> displayed in a browser control that uses a plugin (such as PDF or MSWord),
> then all RAP dialogs, contextmenu, tooltip, etc. appear behind the browser
> control as the plugin is always on top. For modal dialogs this can lead to a
> lock of your application as the dialog can not be closed if it is behind the
> plugin. My solution is to always minimize my browser view as a dialog gets
> opened, but there is no API to do this right now without code change in RAP,
> so I changed it myself for now.
>
> Regards,
> Markus
>
> "Rüdiger Herrmann" <rherrmann@innoopract.com> schrieb im Newsbeitrag
> news:f1a2em$9bs$1@build.eclipse.org...
>> There are no plans to allow to set binary content in the browser widget.
>> Apart from possible problems that the PDF reader plug-in may cause when
>> running in an IFRAME, the way you intend to go should do it.
>>
>> Cheers
>> Rüdiger
>>
>>
>> Roberto Sánchez wrote:
>>> Hi all,
>>>
>>> In my app I generate PDFs dinamically , How can I to show them to user ?,
>>> I've thought about creating a temporary file in a directory in web server
>>> and set the url in a Browser control, but I don't know if exists another
>>> way more correct or elegant.
>>>
>>> Do you know if it is planned the possibility to set binary content to a
>>> Browser widget in SWT/RAP ?
>>>
>>> Thanks in advance.
>>> Roberto.
>
>
Re: Binary content in Browser [message #83566 is a reply to message #21241] Fri, 18 April 2008 12:19 Go to previous message
Mike Wrighton is currently offline Mike WrightonFriend
Messages: 19
Registered: July 2009
Junior Member
Hi Markus,

Would you mind briefly explaining how you got your servlet to stream a
file to the browser widget?

Thanks,
Mike

Markus Krüger wrote:
> Hello,
> I have the same demand for my application in RAP. I solved it with creating
> a servlet that uses the stream of a file (i.e. PDF) and display it whitin
> the
> browser control. But I have to problems that could not be fixed yet. First,
> if I want to save the PDF with the PDF-plugin I get the servlet name as the
> file name to save (i.e. myservlet.pdf).
> Maybe there is a solution for it, but I could not find any. The second and
> more grave problem is, as Rüdiger already mentionedm, that if a file is
> displayed in a browser control that uses a plugin (such as PDF or MSWord),
> then all RAP dialogs, contextmenu, tooltip, etc. appear behind the browser
> control as the plugin is always on top. For modal dialogs this can lead to a
> lock of your application as the dialog can not be closed if it is behind the
> plugin. My solution is to always minimize my browser view as a dialog gets
> opened, but there is no API to do this right now without code change in RAP,
> so I changed it myself for now.
>
> Regards,
> Markus
>
> "Rüdiger Herrmann" <rherrmann@innoopract.com> schrieb im Newsbeitrag
> news:f1a2em$9bs$1@build.eclipse.org...
>> There are no plans to allow to set binary content in the browser widget.
>> Apart from possible problems that the PDF reader plug-in may cause when
>> running in an IFRAME, the way you intend to go should do it.
>>
>> Cheers
>> Rüdiger
>>
>>
>> Roberto Sánchez wrote:
>>> Hi all,
>>>
>>> In my app I generate PDFs dinamically , How can I to show them to user ?,
>>> I've thought about creating a temporary file in a directory in web server
>>> and set the url in a Browser control, but I don't know if exists another
>>> way more correct or elegant.
>>>
>>> Do you know if it is planned the possibility to set binary content to a
>>> Browser widget in SWT/RAP ?
>>>
>>> Thanks in advance.
>>> Roberto.
>
>
Previous Topic:Is Link widget ready to use ?
Next Topic:Servlet Filter usage
Goto Forum:
  


Current Time: Thu Apr 25 16:18:14 GMT 2024

Powered by FUDForum. Page generated in 0.03285 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top