SaveSomething() = Download

Just starting out? Need help? Post your questions and find answers here.
Sirius-2337
Posts: 35
Joined: Wed Mar 26, 2014 5:47 pm

SaveSomething() = Download

Post by Sirius-2337 »

Is it somehow possible to save anything?

It would be nice if you could use SaveImage() or SaveXML() or similar to save/download user created content.
tj1010
Posts: 218
Joined: Wed May 27, 2015 1:36 pm
Contact:

Re: SaveSomething() = Download

Post by tj1010 »

Code: Select all

;only works same domain and is asynchronous
fileurl$="URL path to your file"
Procedure HttpGetEvent(Success, Result$, UserData)
  If Success
    Debug Result$
  Else
    Debug "HTTPRequest(): Error"
  EndIf
EndProcedure

HTTPRequest(#PB_HTTP_Get, fileurl$, "", @HttpGetEvent())
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: SaveSomething() = Download

Post by Fred »

In SpiderBasic, it's ExportSomething to send data to user trough a download:

http://www.spiderbasic.com/documentatio ... image.html
http://www.spiderbasic.com/documentatio ... rtxml.html

and so on..
Post Reply