Page 1 of 1

SaveSomething() = Download

Posted: Sun Jun 28, 2015 4:23 pm
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.

Re: SaveSomething() = Download

Posted: Tue Jun 30, 2015 12:44 am
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())

Re: SaveSomething() = Download

Posted: Tue Jun 30, 2015 2:40 pm
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..