Actions
Support #2830
closedHOW TO DOWNLOAD AN IMAGE IN SERVER SIDEIMAGE
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
Updated by Koen Deforche almost 11 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
Updated by Koen Deforche over 10 years ago
- Status changed from Resolved to Closed
Actions