GIF to BMP with Inet Transfer Control?

I'm using the Internet Transfer Control to download images from the internet.

When I'm browsing the web and right-click to download an image, I can choose to save it as .BMP.  Is there an easy way to convert the native JPG or GIF to BMP in visual basic? Either through the control or through another util?

Here's my code:
Private Function GetUpdate() As Integer
On Error GoTo Update_Error
    Dim bData() As Byte
   
    Inet1.AccessType = icUseDefault
   
    bData() = Inet1.OpenURL(strURL, icByteArray)
    Open BMP_PATH & strDatafile & ".bmp" For Binary Access Write As #1
        Put #1, , bData()
    Close #1
   
    GetUpdate = -1
   
    Exit Function
Update_Error:
    GetUpdate = 0
    Exit Function
End Function

rgrovesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcriderCommented:
You can load the JPG or GIF into a picture control with the LoadPicture statement and then save the picture with the SavePicture statement.

The picture will automatically be saved as a BMP...


Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgrovesAuthor Commented:
Worked perfectly, thanks!!
0
mcriderCommented:
Thanks for the points! Glad I could Help!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Graphics Software

From novice to tech pro — start learning today.