Is there a way to save load a bitmap from a web site without saving to a file

  • Thread starter Thread starter buu
  • Start date Start date
B

buu

So, is there a possibility not to use at the way:

system.net.client(url, file_name)
dim b as new bitmap(file_name),

but to have some way to load it directly o a bitmap?

I tried to find some ways (using streams, etc), but none of it works with
bitmaps, only for text files
 
buu said:
So, is there a possibility not to use at the way:

system.net.client(url, file_name)
dim b as new bitmap(file_name),

but to have some way to load it directly o a bitmap?

I tried to find some ways (using streams, etc), but none of it works with
bitmaps, only for text files

The WebClient.DownloadData method will give you a byte array. Create a
memorystream from the array and load the image from it.
 
Back
Top