Ask about Socket - Vision Data - The difference between Rawbytes and string

Hi everyone !
i usually work with vision and i have an opinion !
sometimes the data i receive from vision will be rawbytes, sometime it will be string
i konw they are not alike. So what will decide about the data vision would send me...,rawbytes or string ? (the hardware, the communication or something else .... )