Convert a String to Stream

后端 未结 4 496
心在旅途
心在旅途 2020-12-09 09:06

I\'ve download an image from the Internet and converted to a String (This is not changeable)

Dim Request As System.Net.WebRequest = _
  System.Net.WebRequest         


        
4条回答
  •  生来不讨喜
    2020-12-09 09:15

    Will this work? I have no idea what format your string is in, so some massaging may be necessary.

    Dim strAsBytes() as Byte = new System.Text.UTF8Encoding().GetBytes(Text)
    Dim ms as New System.IO.MemoryStream(strAsBytes)
    

提交回复
热议问题