Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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: 28
Registered: August 2014
Junior Member
Hi, I have some file stored in postgre db, of type bytea

How can I download it from neon?

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: 104
Registered: November 2010
Senior Member
Try something along the following code:
  protected void execClickAction() {
    byte[] content = ...; // read it from your database
    getDesktop().openUri(new BinaryResource("filename.dat", content), OpenUriAction.DOWNLOAD);

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

Current Time: Mon Nov 19 21:33:40 GMT 2018

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

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

Back to the top