Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Download file
Download file [message #1751668] Thu, 12 January 2017 11:23 Go to next message
Luka Cavic is currently offline Luka CavicFriend
Messages: 47
Registered: August 2014
Member
Hi, I have some file stored in postgre db, of type bytea

How can I download it from neon?

Thanks
Re: Download file [message #1751672 is a reply to message #1751668] Thu, 12 January 2017 11:39 Go to previous message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 205
Registered: November 2010
Senior Member
Try something along the following code:
  @Override
  protected void execClickAction() {
    byte[] content = ...; // read it from your database
    getDesktop().openUri(new BinaryResource("filename.dat", content), OpenUriAction.DOWNLOAD);
  }


Regards,
Beat
Previous Topic:[neon] AbstractOutlineViewButton behaving differently from Mars
Next Topic:[NEON] Fine grained access control
Goto Forum:
  


Current Time: Thu Apr 18 10:08:24 GMT 2024

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

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

Back to the top