Project

General

Profile

Actions

Support #2830

closed

HOW TO DOWNLOAD AN IMAGE IN SERVER SIDEIMAGE

Added by Anonymous about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Target version:
Start date:
03/20/2014
Due date:
% Done:

0%

Estimated time:

Description

I WANT LINK (URL) IN wpUSH BUTTION

ONCES I CLICL PUSH BUTTION I NEED DOWNLOAD ON E IMAGE IN SERVER SIDE

Actions #1

Updated by Koen Deforche about 10 years ago

  • Tracker changed from Bug to Support
  • Status changed from New to Resolved

Hey,

Something like this will do that:

WFileResource *fr = new WFileResource("path/to/image.png", this);
fr->setContentType("image/png"); // adjust accordingly
WPushButton *b = new WPushButton("Download");
b->setLink(WLink(resource))

There's no reason to use caps-locks!

Regards,

koen

Actions #2

Updated by Koen Deforche almost 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF