This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am reading an Image data from a remote server using HttpUrlConnection object. The code is as follows:
when I run this code I get the following exception:
Uncaught handler: thread main exiting due to uncaught exception
java.lang.InternalError: array size too large
I am not sure of the size of the image. I am running this code on Android platform..
I have never tried to get images from server but i have sent an image over HttpConnection, Here is the code. Hope you may get any help from it.
And ya dude, there is a method to get image from URL directly from server. Use Buffered Input Stream and set that stream in Bitmap Factory. You will get image directly in Bitmap. You dont have to be bother about size i think