Sign In Register

How can we help you today?

Start a new topic
Answered

[noob] sending images in chat

Is it possible to send images in chat?
If so, are there any data limits per message / per month?

Alternatively, is it possible to send serialized data.. to give some context, iI wish that the users can send images to one another but there would be some instructions along with each image such as 'this image goes on the door' , ' this image goes on the fridge'.

*its possible that the chat system is not the best place to implement this.. I would like some guidance if that is the case.

I'm a total noob with any kind of backend features.

Thank you.


Best Answer

 Hi Joshua,


I recommend sending a URL of the images address in the message and using a HTTP call to download said image.


The image address can come through multiple methods:


A player linking this URL from a website .


or


Using GameSparks uploadbles to upload an image, then referencing it through an ID which would return a url for you to download using a HTTP request.


You can read more about uploadbles here:


https://docs.gamesparks.com/tutorials/database-access-and-cloud-storage/uploading-binary-content-from-game.html

https://docs.gamesparks.com/api-documentation/request-api/misc/getuploadurlrequest.html

https://docs.gamesparks.com/api-documentation/request-api/misc/getuploadedrequest.html


And here's our fair usage doc:

https://docs.gamesparks.com/documentation/key-concepts/system-limits.html


You can only upload up to 3.5mb per upload request.


Hope this helps,

Omar


1 Comment

Answer

 Hi Joshua,


I recommend sending a URL of the images address in the message and using a HTTP call to download said image.


The image address can come through multiple methods:


A player linking this URL from a website .


or


Using GameSparks uploadbles to upload an image, then referencing it through an ID which would return a url for you to download using a HTTP request.


You can read more about uploadbles here:


https://docs.gamesparks.com/tutorials/database-access-and-cloud-storage/uploading-binary-content-from-game.html

https://docs.gamesparks.com/api-documentation/request-api/misc/getuploadurlrequest.html

https://docs.gamesparks.com/api-documentation/request-api/misc/getuploadedrequest.html


And here's our fair usage doc:

https://docs.gamesparks.com/documentation/key-concepts/system-limits.html


You can only upload up to 3.5mb per upload request.


Hope this helps,

Omar



2 people like this
Login to post a comment