BlackBerry Dev - Downloading an image from online and displaying
So, I've been through the BlackBerry开发者_运维技巧 API, and the online documentation, but I'm having an issue with connecting and getting it to display. I've uploaded the image to the Apache server, and I can access it through localhost, but I can't get it to display to the screen.
I am developing in Eclipse workspace, in a windows vm.
- you have to create http connection to interact with server
- the server will send u data in bytes
- convert this to encoded image / bitmap image and display on screen
try these:
RIM's HttpConnection documentation.
StackOverflow questions:
- BlackBerry app unable to establish Http Connection with server
- post and get data via webservice
- For converting a byte array to a bitmap: Display static Google Map image in BlackBerry 5.0
精彩评论