I am trying to implement a script where I load a binary file previously uploaded to GameSparks, encode to base64, and send it to our 3D printing provider.
To load the file I use SparkHttp class and get() to retrieve the data from the url I get from GetUploadedRequest. The problem I encounter is that I don't really know in which format is the data that getResponseString() returns and, because of this, I get a format invalid when I try to send the encoded file.
Is this the right way to get the uploaded file from GameSparks? Are there any other options to retrieve the binary file so I can encode and send it to the provider?
Thanks.
Best Answer
A
Antonio Donoso
said
almost 8 years ago
OK, nevermind. There was an issue with the encoding process that I managed to fix, and now everything is working.
1 Comment
A
Antonio Donoso
said
almost 8 years ago
Answer
OK, nevermind. There was an issue with the encoding process that I managed to fix, and now everything is working.
Antonio Donoso
Hi,
I am trying to implement a script where I load a binary file previously uploaded to GameSparks, encode to base64, and send it to our 3D printing provider.
To load the file I use SparkHttp class and get() to retrieve the data from the url I get from GetUploadedRequest. The problem I encounter is that I don't really know in which format is the data that getResponseString() returns and, because of this, I get a format invalid when I try to send the encoded file.
Is this the right way to get the uploaded file from GameSparks? Are there any other options to retrieve the binary file so I can encode and send it to the provider?
Thanks.
OK, nevermind. There was an issue with the encoding process that I managed to fix, and now everything is working.
Antonio Donoso
OK, nevermind. There was an issue with the encoding process that I managed to fix, and now everything is working.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics