Hi Everybody,
I've been working on this challenge for a while now without much luck. What I'm attempting to do is split a MIME byte response into its individual images. I am given the boundary to split on in the HTTP header but when I attempt the following code it doesnt work. If anybody has some suggestions on what I should attempt here I would greatly appreciate it.
I've been working on this challenge for a while now without much luck. What I'm attempting to do is split a MIME byte response into its individual images. I am given the boundary to split on in the HTTP header but when I attempt the following code it doesnt work. If anybody has some suggestions on what I should attempt here I would greatly appreciate it.
Code:
'boundary to split on Dim boundary as string = _ "boundarystring" 'read the HTTP response into byte array Dim byteArray() as Byte = memoryStream.ToArray() 'convert the byte array into base64 string Dim base64String as String = _ System.Convert.ToBase64String(byteArray, 0 byteArray.Length) 'attempt to split base64 string by base64 version 'of boundary to retrieve individual photos Dim base64Array() as String = _ base64String.Split(System.Convert.ToBase64String( _ System.Convert.FromBase64String(boundary))) 'then convert each base64 string back to image....
Comment