Home > Net >  Vue, Web API how to convert image to binary 0 x began to format
Vue, Web API how to convert image to binary 0 x began to format

Time:09-17

Vue, Web API how to convert image to binary 0 x began to the format of the

CodePudding user response:

refer to the original poster haokang0510 response:
, Vue Web API how to convert image to binary format ah 0 x start

Can use base64 encoding converts base16

CodePudding user response:

Byte [] arr=File. ReadAllBytes (picture filename)
String s=string. Join (", ", arr. Select (x=& gt; "0" x + x.T oString (" X2 ")));

CodePudding user response:

0 x is hexadecimal

CodePudding user response:

Vue?
Why not give him the url directly, directly in front of the SRC, not more simple than a blob

CodePudding user response:

I think if I want to say with my vue front, I'm going to make him an ajax request, binary or base64 string, let him to find a way to use vue displayed, his first thought was, 'my knife? '

CodePudding user response:

  •  Tags:  
  • C #