I have been working in a project to upload and download binary data, i have done uploading and downloading using binary data by storing them in string, but some says binary data should be stored in vector of char than string. I don't exactly find the proper reason for using vector of char over string. I tested my code for uploading and downloading pdf, image, audio, video files everything works fine with string.
Please guide me which is the better datatype to store binary data and what are the reasons?