#How to save to binary instead of json Serde

10 messages · Page 1 of 1 (latest)

warm hedge
#

My save files are starting to get large since I'm saving HD images to it and json is way to slow so how, using Serde, can I just save the binary or raw data instead? (eventually will downscale images and otherstuff but for now I just need this)

#

How to save to binary instead of json Serde

warm hedge
#

any recommendations?

uneven mirage
#
#

but what do you mean with "i'm saving images to it"

warm hedge
#

so I have an array of lets say Cows, and each cow has an image raw Vec<u8>, rgba format

#

and im saving that array to a file

buoyant marlin
#

You want to save it as some specific format like JPG?