question

contact-10 avatar image
contact-10 asked

Binary Data

Is it possible to save binary data/blobs? If so, how? (for instance, at a player level)

data
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

You could use the Content service to upload any arbitrary files you want right now, though you would need to use a custom game server to proxy that, in order to ensure that the player can't upload anything they want to (making your game an illegal file share pretty quickly).

We will be providing a file storage system in an upcoming release which will provide for binary data uploads from the client directly.

13 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

contact-10 avatar image contact-10 commented ·

ETA for the file-storage system?

0 Likes 0 ·
brendan avatar image brendan contact-10 commented ·

We try not to specify dates, since our schedule can change due to the needs of live titles. We are working on making that available at the start of Q1, but please be aware that we cannot guarantee that date.

0 Likes 0 ·
Kain avatar image Kain commented ·

For the upcoming binary uploads per client, are you able to tell us if we can think of those uploads the same way we'd think of key-value pairs per user? As in string key maps to binary value?

Also, would you be able to tell us whether the API for this feature would include a way to access all binary uploads per title across all users?

0 Likes 0 ·
brendan avatar image brendan Kain commented ·

We'll provide complete documentation when we release the new data system, but short answer, yes, you'll be using an ID to specify what you're accessing.

For the second question, can you explain what you mean? If you literally mean being able to make a single call which will download all data for all users, then no, that's not something we would support.

1 Like 1 ·
ultrahead avatar image ultrahead commented ·

@Brendan: any news regarding the file-storage system?

As a workaround, I guess one can convert the bits to, say, base64 string and store it as a key/value pair per user. So, the question is: what's the limit per value? 10kb? 400kb? Other?

0 Likes 0 ·
brendan avatar image brendan ultrahead commented ·

We'll be providing complete docs when we release the new data system. It will be designed to be flexible in terms of file size, and specifically so that you can store any binary files you need to, on behalf of the title and users. If you want to write binary data into the existing string/string key/value pair system, yes, you would convert it via UUEncode or Base64. The existing system (not the new file system we'll be releasing shortly) limits the Value of your data to the size you see in your title's Settings->Limits tab (varies by tier, and you can pay for upgraded limits).

0 Likes 0 ·
ultrahead avatar image ultrahead brendan commented ·

Understood. In the upcoming system, when you upload a file for the user with an existing name, will the new file replace the existing one? Will it be renamed? (like xx_1, xx_2). Or will it support versioning?

0 Likes 0 ·
Show more comments
ultrahead avatar image ultrahead commented ·

Is the new system in beta-test phase? If so, can we apply to join it?

0 Likes 0 ·
brendan avatar image brendan ultrahead commented ·

We're not currently doing an open beta test on this, no. If we do, we'll make sure to reach out to folks who've expressed interest.

0 Likes 0 ·
ultrahead avatar image ultrahead brendan commented ·

Any chance for submissions to join the close beta?

0 Likes 0 ·
ultrahead avatar image ultrahead commented ·

Hi, congrats for joining Msft!

Any new regarding binary data?

0 Likes 0 ·
brendan avatar image brendan ultrahead commented ·

Yes, we expect to be able to make this available next month.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.