on 12-07-2005 7:08 PM
Hello everybody,
unfortunately we can't use the DownloadFile-UI to open a browserwindow to show the file (e.g. PDF, JPG ..).
We do not have a bytearray! Now we think about using a URL-Link.
a) Ist this possible?
b) How do path and File have to look for the URL Propeties (Slash, Backslash)
Thanks a lot
Regards Mairo
Hi Mario,
You can use a linktoURL ui element to point to the link and the target property can be set to say whether it needs to be opened in a new window.
About the url...you can save the file on the server some where...create and HTTP alias pointing to it and use it as the url...
check this weblog for creating an http alias...
/people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was
another option could be to include the file as part of your WD application itself and use a urlgenerator to get the url to that and use that url in the linktourl ui element. check for help on urlgenerator for this...
Thanks & Regards,
Renjith.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mario,
Pls put the file in the application server say C: empmypicture.jpg.
Then create an HTTP alias(<httpalias_created_on_Webas>) pointing to the folder c: emp in the WEBAS as it is shown in the weblog - https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1444. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
then the the url would be http://<webas>:<port>/<httpalias_created_on_Webas>/mypicture.jpg
Thanks & Regards,
Renjith
Hi Mario,
Go to visual admin->services->HTTP Provider
Click on the aliases tab
Give the name and path of the jpeg file
Save properties
Now if you give http://localhost:50000/<name>; you will get it
Regards
Rohit
Mario,
If you have a file, you always can get a byte array for IWDFileDownload control
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.