Gets binary format of an image generated from the specified URL in the
the specified System.Drawing.Imaging.ImageFormat format. The bytes can be further written in
any stream like a disk file or a web response. This method is obsolete and it was preserved for
backward compatibility. It offers the same functionality as GetImageBytesFromUrl method which is
the preferred method now.
| C# | Visual Basic | Visual C++ |
public byte[] GetImageFromUrlBytes( string url, ImageFormat format )
Public Function GetImageFromUrlBytes ( _ url As String, _ format As ImageFormat _ ) As Byte()
public: array<unsigned char>^ GetImageFromUrlBytes( String^ url, ImageFormat^ format )
- url (String)
- The web page URL
- format (ImageFormat)
- The image format
The binary representation of the image as byte[] object