All Questions

1016
votes
40answers
549095 views

Strange out of memory issue while loading an image to a Bitmap object

I have a list view with a couple of image buttons on each row. When you click the list row, it launches a new activity. I have had to build my own tabs because of an issue with the camera layout. The ...
1649
votes
37answers
503538 views

Lazy load of images in ListView

I am using a ListView to display some images and captions associated with those images. I am getting the images from the Internet. Is there a way to lazy load the images so while the text displays, th...
415
votes
56answers
456071 views

Storing Images in DB - Yea or Nay?

So I'm using an app that stores images heavily in the DB. What's your outlook on this? I'm more of a type to store the location in the filesystem, than store it directly in the DB. What do you think ...
94
votes
1answers
3923 views

Example images for code and mark-up Q&As

When preparing an MCVE/SSCCE that involves images, it is useful to have direct access to images. The types of images that would cover most questions are - small images in multiple colors or shapes,...
312
votes
9answers
103796 views

Image inside div has extra space below the image

Why in the following code the height of the div is bigger than the height of the img ? There is a gap below the image, but it doesn't seems to be a padding/margin. What is the gap or extra space bel...
22
votes
4answers
66053 views

How to retrieve and display images from a database in a JSP page?

How can I retrieve and display images from a database in a JSP page?
290
votes
6answers
335844 views

Get image data in JavaScript?

I have a regular HTML page with some images (just regular <img /> HTML tags). I'd like to get their content, base64 encoded preferably, without the need to redownload the image (ie. it's already...
67
votes
7answers
92090 views

Browser can't access/find relative resources like CSS, images and links when calling a Servlet which forwards to a JSP

I'm having trouble with loading CSS and images and creating links to other pages when I have a servlet forward to a JSP. Specifically, when I set my <welcome-file> to index.jsp, the CSS is being...
1036
votes
30answers
1083908 views

How to vertically align an image inside a div?

Question How can you align an image inside of a containing div? Example In my example, I need to vertically center the <img> in the <div> with class ="frame" : <div class="frame" st...
479
votes
23answers
850197 views

How to get image size (height & width) using JavaScript?

Are there any jQuery or pure JS APIs or methods to get the dimensions of an image on the page?

Previous Next