Trying to add a jpeg file to resources

I’m trying to add a jpeg file to the resources of my project.
When I drag the file into the IDE and run the code the file is in resources but it shows up as a png file.

Why might that be? (or what am I doing wrong?)

Thanks

[quote=490637:@Phillip Bond]I’m trying to add a jpeg file to the resources of my project.
When I drag the file into the IDE and run the code the file is in resources but it shows up as a png file.

Why might that be? (or what am I doing wrong?)

Thanks[/quote]
Images dragged into the IDE are converted. If you want it to stay as jpeg, you will need to use a Copy File build step.

Thanks!

if you really want the original file without having to deal with it in the Resources folder, another trick you can use is to rename it, e.g. MyPicture.jpeg --> MyPicture_jpeg.dat
Then drag it to the IDE, and it will not be interpreted as an image, but just as a string/memoryblock/raw data.

Then you can use it in code:

dim mb as MemoryBlock = MyPicture_jpeg
// do something with the data