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: 26
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: 95
Registered: November 2010
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: Thu Sep 20 12:14:44 GMT 2018

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

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

Back to the top