Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

IO.File.ReadAllBytes("C:\file.jpg") ?? In resource?

Hey im wondering how i can do this while storing my .jpg file in resources so i can do
IO.File.ReadAllBytes("My.Resources.MyJPG")

but if i do this i get an error saying

Value of type 'System.Drawing.Bitmap' cannot be converted to '1-dimensional array of Byte'.
like this

Dim img As New System.Drawing.Bitmap(My.Resources.myJPG)


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by GrootyAug 18, 2024 06:15 PM 1 201 Aug 18, 2024 06:15 PM
Last Post: Lookdadon
[Help] by john ronaldsadAug 18, 2024 05:58 PM 1 144 Aug 18, 2024 05:58 PM
Last Post: Lookdadon
[.NET] by dedeaJul 3, 2018 05:59 PM 7 149 Jul 3, 2018 05:59 PM
Last Post: Nick (Name)