Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I am getting .jpg image array as a response string , I want to set that image to menu item .
How to convert byte array to bitmap.
I used CONVERTBMP but it return null .
I also try to store byte array to file using IFILE_Write , even though it is writing byte array to file , when open the file , it is not showing it in image viewer.
Plz , give me proper steps for this.

Check if you are getting the complete stream of jpg including header or not. If yes, it should work by dumping to file. Otherwise, you need to write header (you need to create) and then stream to file.

Check if you are getting the complete stream of jpg including header or not. If yes, it should work by dumping to file. Otherwise, you need to write header (you need to create) and then stream to file.

there was problem while getting response , now i am getting complete stream of bytes. and i am successfully able to convert it file and assign it menu item.
Is there any way to directly assign byte array to menu , instead of storing it in file and then assign.

there was problem while getting response , now i am getting complete stream of bytes. and i am successfully able to convert it file and assign it menu item.
Is there any way to directly assign byte array to menu , instead of storing it in file and then assign.